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

Method Close

test/end2end_test.go:6957–6960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6955}
6956
6957func (w *wrapCloseConn) Close() error {
6958 defer w.closeOnce.Do(func() { atomic.AddInt32(&w.lis.connsOpen, -1) })
6959 return w.Conn.Close()
6960}
6961
6962// TestServerClosesConn ensures conn.Close is always closed even if the client
6963// doesn't complete the HTTP/2 handshake.

Callers

nothing calls this directly

Calls 2

DoMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected