MCPcopy Create free account
hub / github.com/cloudwego/netpoll / Close

Method Close

connection_impl.go:356–358  ·  view source on GitHub ↗

Close implements Connection.

()

Source from the content-addressed store, hash-verified

354
355// Close implements Connection.
356func (c *connection) Close() error {
357 return c.onClose()
358}
359
360// Detach detaches the connection from poller but doesn't close it.
361func (c *connection) Detach() error {

Callers 10

TestConnectionWriteFunction · 0.95
TestConnectionLargeWriteFunction · 0.95
TestConnectionReadFunction · 0.95
TestConnectionIOReaderFunction · 0.95
TestConnectionUntilFunction · 0.95
TestWriterAfterCloseFunction · 0.95
onProcessMethod · 0.95
registerMethod · 0.95
TestPollManagerFunction · 0.95

Calls 1

onCloseMethod · 0.95

Tested by 8

TestConnectionWriteFunction · 0.76
TestConnectionLargeWriteFunction · 0.76
TestConnectionReadFunction · 0.76
TestConnectionIOReaderFunction · 0.76
TestConnectionUntilFunction · 0.76
TestWriterAfterCloseFunction · 0.76
TestPollManagerFunction · 0.76