Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
150
func
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
TestRunEchoes
Function · 0.80
TestRunOnBytesNoDataRace
Function · 0.80
halfCloseWrite
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestRunEchoes
Function · 0.64
TestRunOnBytesNoDataRace
Function · 0.64