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>
2024-10-20 19:56:28 -07:00
..
derphttp_client.go derp: track client-advertised non-ideal DERP connections in more places 2024-10-20 19:56:28 -07:00
derphttp_server.go derp: track client-advertised non-ideal DERP connections in more places 2024-10-20 19:56:28 -07:00
derphttp_test.go derp: make RunConnectionLoop funcs take Messages, support PeerPresentFlags 2024-06-25 09:47:25 -07:00
mesh_client.go derp: document the RunWatchConnectionLoop callback gotchas 2024-09-24 15:32:08 -07:00
websocket.go go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 2024-08-14 21:23:49 -07:00