Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ UngracefulDisconnect
Method
UngracefulDisconnect
tailnet/test/peer.go:388–392 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
386
}
387
388
func
(p *Peer) UngracefulDisconnect(ctx context.Context) {
389
p.t.Helper()
390
close(p.reqs)
391
p.Close(ctx)
392
}
393
394
type
FakeSubjectKey
struct
{}
395
Callers
13
TestPGCoordinatorSingle_MissedHeartbeats_NoDrop
Function · 0.95
TestPGCoordinatorSingle_ClientWithoutAgent
Function · 0.80
TestPGCoordinatorSingle_AgentWithoutClients
Function · 0.80
TestPGCoordinatorSingle_AgentValidIP
Function · 0.80
TestPGCoordinatorSingle_AgentWithClient
Function · 0.80
TestPGCoordinatorSingle_MissedHeartbeats
Function · 0.80
TestPGCoordinator_MultiCoordinatorAgent
Function · 0.80
TestPGCoordinator_MultiAgent
Function · 0.80
TestPGCoordinator_MultiAgent_UnsubscribeRace
Function · 0.80
TestPGCoordinator_MultiAgent_Unsubscribe
Function · 0.80
TestPGCoordinator_MultiAgent_MultiCoordinator
Function · 0.80
TestPGCoordinator_MultiAgent_MultiCoordinator_UpdateBeforeSubscribe
Function · 0.80
Calls
2
Close
Method · 0.95
Helper
Method · 0.65
Tested by
13
TestPGCoordinatorSingle_MissedHeartbeats_NoDrop
Function · 0.76
TestPGCoordinatorSingle_ClientWithoutAgent
Function · 0.64
TestPGCoordinatorSingle_AgentWithoutClients
Function · 0.64
TestPGCoordinatorSingle_AgentValidIP
Function · 0.64
TestPGCoordinatorSingle_AgentWithClient
Function · 0.64
TestPGCoordinatorSingle_MissedHeartbeats
Function · 0.64
TestPGCoordinator_MultiCoordinatorAgent
Function · 0.64
TestPGCoordinator_MultiAgent
Function · 0.64
TestPGCoordinator_MultiAgent_UnsubscribeRace
Function · 0.64
TestPGCoordinator_MultiAgent_Unsubscribe
Function · 0.64
TestPGCoordinator_MultiAgent_MultiCoordinator
Function · 0.64
TestPGCoordinator_MultiAgent_MultiCoordinator_UpdateBeforeSubscribe
Function · 0.64