tailscale/cmd
Avery Pennarun 19c3e6cc9e types/logger: rate limited: more hysteresis, better messages.
- Switch to our own simpler token bucket, since x/time/rate is missing
  necessary stuff (can't provide your own time func; can't check the
  current bucket contents) and it's overkill anyway.

- Add tests that actually include advancing time.

- Don't remove the rate limit on a message until there's enough room to
  print at least two more of them. When we do, we'll also print how
  many we dropped, as a contextual reminder that some were previously
  lost. (This is more like how the Linux kernel does it.)

- Reformat the [RATE LIMITED] messages to be shorter, and to not
  corrupt original message. Instead, we print the message, then print
  its format string.

- Use %q instead of \"%s\", for more accurate parsing later, if the
  format string contained quotes.

Fixes #1772

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2021-04-30 01:01:15 -04:00
..
cloner all: adjust Unix permissions for those without umasks 2021-01-11 19:24:41 -08:00
derper cmd/derper: add /bootstrap-dns handler 2021-02-26 09:29:28 -08:00
hello client/tailscale/apitype: move local API types to new apitype package 2021-04-13 08:13:46 -07:00
microproxy cmd/microproxy: add -insecure flag 2020-09-15 15:07:56 -07:00
mkpkg cmd/mkpkg: support adding empty directories. 2020-05-04 17:57:13 -04:00
tailscale types/logger: rate limited: more hysteresis, better messages. 2021-04-30 01:01:15 -04:00
tailscaled types/logger: rate limited: more hysteresis, better messages. 2021-04-30 01:01:15 -04:00
tsshd net/interfaces: return all Tailscale addresses from Tailscale(). 2021-04-29 12:25:47 -07:00