MCPcopy Create free account
hub / github.com/SamNet-dev/snix / CloseWrite

Method CloseWrite

core/relay/tcp.go:151–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149// cleanly. For non-TCP conns it falls back to Close.
150func halfCloseWrite(c net.Conn) error {
151 type closeWriter interface{ CloseWrite() error }
152 if cw, ok := c.(closeWriter); ok {
153 return cw.CloseWrite()
154 }

Callers 3

TestRunEchoesFunction · 0.80
TestRunOnBytesNoDataRaceFunction · 0.80
halfCloseWriteFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestRunEchoesFunction · 0.64
TestRunOnBytesNoDataRaceFunction · 0.64