MCPcopy Index your code
hub / github.com/coder/coder / CloseClient

Method CloseClient

tailnet/controllers.go:234–236  ·  view source on GitHub ↗

CloseClient forcibly closes the underlying coordinator client connection without sending a graceful Disconnect message. Use this when you need to tear down the connection immediately, for example after a send error.

()

Source from the content-addressed store, hash-verified

232// without sending a graceful Disconnect message. Use this when you need to
233// tear down the connection immediately, for example after a send error.
234func (c *BasicCoordination) CloseClient() error {
235 return c.client.Close()
236}
237
238// SendRequest sends a coordinate request on the client connection, holding
239// the coordination lock to prevent concurrent writes on the dRPC stream.

Callers 2

ensureAgentMethod · 0.80
doExpireOldAgentsMethod · 0.80

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected