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/derphttp
Brad Fitzpatrick c76a6e5167 derp: track client-advertised non-ideal DERP connections in more places
In f77821fd63 (released in v1.72.0), we made the client tell a DERP server
when the connection was not its ideal choice (the first node in its region).

But we didn't do anything with that information until now. This adds a
metric about how many such connections are on a given derper, and also
adds a bit to the PeerPresentFlags bitmask so watchers can identify
(and rebalance) them.

Updates tailscale/corp#372

Change-Id: Ief8af448750aa6d598e5939a57c062f4e55962be
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 week ago
..
derphttp_client.go derp: track client-advertised non-ideal DERP connections in more places 1 week ago
derphttp_server.go derp: track client-advertised non-ideal DERP connections in more places 1 week ago
derphttp_test.go derp: make RunConnectionLoop funcs take Messages, support PeerPresentFlags 4 months ago
mesh_client.go derp: document the RunWatchConnectionLoop callback gotchas 1 month ago
websocket.go go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 3 months ago