You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
6 years ago
..
ipnserver Implement rate limiting on log messages (#356) 6 years ago
ipnstate cmd/tailscale: add status subcommand 6 years ago
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 6 years ago
backend.go types/structs: add structs.Incomparable annotation, use it where applicable 6 years ago
doc.go Move Linux client & common packages into a public repo. 6 years ago
e2e_test.go Implement rate limiting on log messages (#356) 6 years ago
fake_test.go cmd/tailscale: add status subcommand 6 years ago
handle.go all: remove unnecessary trailing newlines in format patterns for consistency 6 years ago
local.go wgengine: plumb locally advertised subnet routes. 6 years ago
message.go types/structs: add structs.Incomparable annotation, use it where applicable 6 years ago
message_test.go tstest: rename from testy. 6 years ago
prefs.go cmd/tailscale: add --advertise-tags option. 6 years ago
prefs_test.go cmd/tailscale: add --advertise-tags option. 6 years ago
store.go ipn: have NewFileStore try to create directories as needed 6 years ago
store_test.go Introduce a state store to LocalBackend. 6 years ago