MCPcopy
hub / github.com/grpc/grpc-go / ResetConnectBackoff

Method ResetConnectBackoff

clientconn.go:1181–1188  ·  view source on GitHub ↗

ResetConnectBackoff wakes up all subchannels in transient failure and causes them to attempt another connection immediately. It also resets the backoff times used for subsequent attempts regardless of the current state. In general, this function should not be used. Typical service or network outa

()

Source from the content-addressed store, hash-verified

1179// Notice: This API is EXPERIMENTAL and may be changed or removed in a
1180// later release.
1181func (cc *ClientConn) ResetConnectBackoff() {
1182 cc.mu.Lock()
1183 conns := cc.conns
1184 cc.mu.Unlock()
1185 for ac := range conns {
1186 ac.resetConnectBackoff()
1187 }
1188}
1189
1190// Close tears down the ClientConn and all underlying connections.
1191func (cc *ClientConn) Close() error {

Callers 1

Calls 3

resetConnectBackoffMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1