tailscale/cmd/tailscaled
Avery Pennarun fbefa05d48 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-05-03 12:24:02 -07:00
..
debug.go Revert "cmd/tailscaled: split package main into main shim + package" 2021-03-25 09:06:00 -07:00
depaware.txt types/logger: rate limited: more hysteresis, better messages. 2021-05-03 12:24:02 -07:00
install_darwin.go cmd/tailscaled: remove tailscaled binary on uninstall-system-daemon 2021-03-31 15:44:04 -07:00
install_windows.go ipn/ipnlocal: add file sharing to windows shell 2021-04-23 13:32:33 -07:00
tailscaled_notwindows.go Revert "cmd/tailscaled: split package main into main shim + package" 2021-03-25 09:06:00 -07:00
tailscaled_windows.go cmd/tailscaled: don't block ipnserver startup behind engine init on Windows 2021-04-20 22:26:27 -07:00
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 2020-03-13 14:38:04 -07:00
tailscaled.go wgengine/magicsock: remove DefaultPort const 2021-04-28 10:39:28 -07:00
tailscaled.service cmd/tailscaled/tailscaled.service: revert recent hardening for now 2021-02-01 13:37:48 -08:00