tailscale/cmd
Wendi Yu 0c69b4e00d
Implement rate limiting on log messages (#356)
Implement rate limiting on log messages

Addresses issue #317, where logs can get spammed with the same message
nonstop. Created a rate limiting closure on logging functions, which
limits the number of messages being logged per second based on format
string. To keep memory usage as constant as possible, the previous cache
purging at periodic time intervals has been replaced by an LRU that
discards the oldest string when the capacity of the cache is reached.


Signed-off-by: Wendi Yu <wendi.yu@yahoo.ca>
2020-05-08 13:21:36 -06:00
..
derper derp: move write timeout to package constant. 2020-03-20 15:14:01 -07:00
microproxy tsweb: rename Handler to ReturnHandler 2020-04-05 13:16:36 -07:00
mkpkg cmd/mkpkg: support adding empty directories. 2020-05-04 17:57:13 -04:00
relaynode cmd/relaynode: delete it! 2020-03-25 04:48:15 -04:00
tailscale cmd/netcheck: better DERP latency checking output 2020-05-05 15:11:20 -04:00
tailscaled Implement rate limiting on log messages (#356) 2020-05-08 13:21:36 -06:00
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 2020-03-10 11:03:19 -07:00