tailscale/ipn
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
..
ipnserver Implement rate limiting on log messages (#356) 2020-05-08 13:21:36 -06:00
ipnstate cmd/tailscale: add status subcommand 2020-03-27 20:34:36 -07:00
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 2020-04-01 10:03:44 -07:00
backend.go types/structs: add structs.Incomparable annotation, use it where applicable 2020-05-03 14:05:32 -07:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
e2e_test.go Implement rate limiting on log messages (#356) 2020-05-08 13:21:36 -06:00
fake_test.go cmd/tailscale: add status subcommand 2020-03-27 20:34:36 -07:00
handle.go all: remove unnecessary trailing newlines in format patterns for consistency 2020-04-11 08:35:34 -07:00
local.go wgengine: plumb locally advertised subnet routes. 2020-05-07 17:48:49 +00:00
message.go types/structs: add structs.Incomparable annotation, use it where applicable 2020-05-03 14:05:32 -07:00
message_test.go tstest: rename from testy. 2020-04-28 20:45:12 -07:00
prefs.go cmd/tailscale: add --advertise-tags option. 2020-05-01 01:32:24 -04:00
prefs_test.go cmd/tailscale: add --advertise-tags option. 2020-05-01 01:32:24 -04:00
store.go ipn: have NewFileStore try to create directories as needed 2020-03-03 11:51:44 -08:00
store_test.go Introduce a state store to LocalBackend. 2020-02-13 19:26:53 -08:00