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

Method AwaitReachable

codersdk/workspacesdk/agentconn.go:170–175  ·  view source on GitHub ↗

AwaitReachable waits for the agent to be reachable.

(ctx context.Context)

Source from the content-addressed store, hash-verified

168
169// AwaitReachable waits for the agent to be reachable.
170func (c *agentConn) AwaitReachable(ctx context.Context) bool {
171 ctx, span := tracing.StartSpan(ctx)
172 defer span.End()
173
174 return c.Conn.AwaitReachable(ctx, c.agentAddress())
175}
176
177// Ping pings the agent and returns the round-trip time.
178// The bool returns true if the ping was made P2P.

Callers 5

ReconnectingPTYMethod · 0.95
SSHOnPortMethod · 0.95
SpeedtestMethod · 0.95
DialContextMethod · 0.95
apiClientMethod · 0.95

Calls 3

agentAddressMethod · 0.95
StartSpanFunction · 0.92
AwaitReachableMethod · 0.65

Tested by

no test coverage detected