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/derp
julianknodt fe54721e31 derp: add pkt queue latency timer
It would be useful to know the time that packets spend inside of a queue before they are sent
off, as that can be indicative of the load the server is handling (and there was also an
existing TODO). This adds a simple exponential moving average metric to track the average packet
queue duration.
Changes during review:
Add CAS loop for recording queue timing w/ expvar.Func, rm snake_case, annotate in milliseconds,
convert

Signed-off-by: julianknodt <julianknodt@gmail.com>
3 years ago
..
derphttp derp{,/derphttp},magicsock: tell DERP server when ping acks can be expected 3 years ago
derpmap derp/derpmap: add São Paulo (derp11) 3 years ago
derp.go wgengine/magicsock, derp, derp/derphttp: respond to DERP server->client pings 3 years ago
derp_client.go derp: return keep-alive message up to callers 3 years ago
derp_server.go derp: add pkt queue latency timer 3 years ago
derp_test.go derp: handle net.ErrClosed in TestSendFreeze 3 years ago