MCPcopy Index your code
hub / github.com/cloudwego/netpoll / Shutdown

Method Shutdown

eventloop.go:34–34  ·  view source on GitHub ↗

Shutdown is used to graceful exit. It will close all idle connections on the server, but will not change the underlying pollers. Argument: ctx set the waiting deadline, after which an error will be returned, but will not force the closing of connections in progress.

(ctx context.Context)

Source from the content-addressed store, hash-verified

32 // Argument: ctx set the waiting deadline, after which an error will be returned,
33 // but will not force the closing of connections in progress.
34 Shutdown(ctx context.Context) error
35}
36
37/* The Connection Callback Sequence Diagram

Callers 15

TestDialerFdAllocFunction · 0.95
TestFDCloseFunction · 0.95
TestOnConnectFunction · 0.65
TestOnConnectWriteFunction · 0.65
TestOnDisconnectFunction · 0.65
TestGracefulExitFunction · 0.65

Implementers 1

eventLoopnetpoll_unix.go

Calls

no outgoing calls

Tested by 15

TestDialerFdAllocFunction · 0.76
TestFDCloseFunction · 0.76
TestOnConnectFunction · 0.52
TestOnConnectWriteFunction · 0.52
TestOnDisconnectFunction · 0.52
TestGracefulExitFunction · 0.52