tailscale/derp/derphttp
Brad Fitzpatrick b27238b654 derp/derphttp: don't block in LocalAddr method
The derphttp.Client mutex is held during connects (for up to 10
seconds) so this LocalAddr method (blocking on said mutex) could also
block for up to 10 seconds, causing a pileup upstream in
magicsock/wgengine and ultimately a watchdog timeout resulting in a
crash.

Updates #11519

Change-Id: Idd1d94ee00966be1b901f6899d8b9492f18add0f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-04-08 10:57:05 -07:00
..
derphttp_client.go derp/derphttp: don't block in LocalAddr method 2024-04-08 10:57:05 -07:00
derphttp_server.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
derphttp_test.go derp/derphttp: don't block in LocalAddr method 2024-04-08 10:57:05 -07:00
mesh_client.go derp/derphttp: fix derptrack fix 2023-11-04 11:48:40 -07:00
websocket.go net/wsconn: accept a remote addr string and plumb it through 2023-08-29 16:57:16 -07:00