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

Method Stop

server.go:1943–1945  ·  view source on GitHub ↗

Stop stops the gRPC server. It immediately closes all open connections and listeners. It cancels all active RPCs on the server side and the corresponding pending RPCs on the client side will get notified by connection errors.

()

Source from the content-addressed store, hash-verified

1941// pending RPCs on the client side will get notified by connection
1942// errors.
1943func (s *Server) Stop() {
1944 s.stop(false)
1945}
1946
1947// GracefulStop stops the gRPC server gracefully. It stops the server from
1948// accepting new connections and RPCs and blocks until all the pending RPCs are

Callers 12

TestStopBeforeServeMethod · 0.95
StartServerFunction · 0.95
mainFunction · 0.95
setupServerFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
RunRegisterTestsFunction · 0.95

Calls 1

stopMethod · 0.95