tailscale/derp
Anton Tolchanov 6cc6c70d70 derp: prevent concurrent access to multiForwarder map
Instead of iterating over the map to determine the preferred forwarder
on every packet (which could happen concurrently with map mutations),
store it separately in an atomic variable.

Fixes #6445

Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2022-11-28 22:49:06 +00:00
..
derphttp all: use strs.CutPrefix and strs.CutSuffix more 2022-11-21 14:32:16 -08:00
testdata derp: add debug traffic handler 2021-06-18 15:47:55 -07:00
derp_client.go all: use syncs.AtomicValue 2022-08-04 11:52:16 -07:00
derp_server_default.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
derp_server_linux.go derp: add TCP RTT metric on Linux (#5949) 2022-10-15 12:57:10 -04:00
derp_server.go derp: prevent concurrent access to multiForwarder map 2022-11-28 22:49:06 +00:00
derp_test.go derp: prevent concurrent access to multiForwarder map 2022-11-28 22:49:06 +00:00
derp.go refactor: move from io/ioutil to io and os packages 2022-09-15 21:45:53 -07:00
dropreason_string.go derp: accept dup clients without closing prior's connection 2021-08-31 08:21:21 -07:00