coder/tailnet
Spike Curtis e5ba586e30
fix: fix graceful disconnect in DialWorkspaceAgent (#11993)
I noticed in testing that the CLI wasn't correctly sending the disconnect message when it shuts down, and thus agents are seeing this as a "lost" peer, rather than a "disconnected" one. 

What was happening is that we just used a single context for everything from the netconn to the RPCs, and when the context was canceled we failed to send the disconnect message due to canceled context.

So, this PR splits things into two contexts, with a graceful one set to last up to 1 second longer than the main one.
2024-02-05 14:01:37 +04:00
..
proto fix: stop spamming DERP map updates for equivalent maps (#11792) 2024-01-24 16:27:15 +04:00
tailnettest chore: move FakeCoordinator to tailnettest (#11992) 2024-02-05 13:49:32 +04:00
test feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
testdata feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
client.go feat: add logging to client tailnet yamux (#11908) 2024-01-30 09:58:59 +04:00
configmaps.go fix: stop spamming DERP map updates for equivalent maps (#11792) 2024-01-24 16:27:15 +04:00
configmaps_internal_test.go fix: stop spamming DERP map updates for equivalent maps (#11792) 2024-01-24 16:27:15 +04:00
conn.go feat: add option to speedtest to dump a pcap of network traffic (#11848) 2024-01-29 09:57:31 -06:00
conn_test.go fix: use TSMP ping for reachability, not latency (#11749) 2024-01-22 17:37:15 +04:00
convert.go feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
convert_test.go feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
coordinator.go fix: fix graceful disconnect in DialWorkspaceAgent (#11993) 2024-02-05 14:01:37 +04:00
coordinator_internal_test.go feat: support v2 Tailnet API in AGPL coordinator (#11010) 2023-12-06 15:04:28 +04:00
coordinator_test.go fix: close MultiAgentConn when coordinator closes (#11941) 2024-01-31 00:38:19 +04:00
derp.go feat: automatically use websockets if DERP upgrade is unavailable (#6381) 2023-03-01 22:18:14 +00:00
derpmap.go chore: fail server startup on invalid DERP map (#10536) 2023-11-06 23:04:07 +10:00
derpmap_test.go chore: fail server startup on invalid DERP map (#10536) 2023-11-06 23:04:07 +10:00
multiagent.go chore: remove legacy wsconncache (#11816) 2024-01-30 07:56:36 +04:00
node.go chore: add setBlockEndpoints to nodeUpdater (#11636) 2024-01-18 10:02:15 +04:00
node_internal_test.go chore: add setBlockEndpoints to nodeUpdater (#11636) 2024-01-18 10:02:15 +04:00
peer.go feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
service.go feat: agent uses Tailnet v2 API for DERPMap updates (#11698) 2024-01-23 14:42:07 +04:00
service_test.go chore: move FakeCoordinator to tailnettest (#11992) 2024-02-05 13:49:32 +04:00
trackedconn.go feat: use tailnet v2 API for coordination (#11638) 2024-01-22 11:07:50 +04:00
tunnel.go feat: support v2 Tailnet API in AGPL coordinator (#11010) 2023-12-06 15:04:28 +04:00
tunnel_internal_test.go feat: support v2 Tailnet API in AGPL coordinator (#11010) 2023-12-06 15:04:28 +04:00