MCPcopy Index your code
hub / github.com/subtrace/subtrace / CloseWrite

Method CloseWrite

cmd/run/socket/proxy.go:1412–1417  ·  view source on GitHub ↗

CloseWrite half-closes the write side of the connection. If the underlying net.Conn is not half-closeable (i.e. not a *net.TCPConn), this is a no-op.

()

Source from the content-addressed store, hash-verified

1410// CloseWrite half-closes the write side of the connection. If the underlying
1411// net.Conn is not half-closeable (i.e. not a *net.TCPConn), this is a no-op.
1412func (c *bufConn) CloseWrite() error {
1413 if c, ok := c.Conn.(interface{ CloseWrite() error }); ok {
1414 return c.CloseWrite()
1415 }
1416 return nil
1417}
1418
1419// CloseRead half-closes the read side of the connection. If the underlying
1420// net.Conn is not half-closeable (i.e. not a *net.TCPConn), this is a no-op.

Callers 3

proxyHTTP1Method · 0.80
proxyHTTP2Method · 0.80
proxyFallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected