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

Method CloseRead

cmd/run/socket/proxy.go:1421–1426  ·  view source on GitHub ↗

CloseRead half-closes the read 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

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.
1421func (c *bufConn) CloseRead() error {
1422 if c, ok := c.Conn.(interface{ CloseRead() error }); ok {
1423 return c.CloseRead()
1424 }
1425 return nil
1426}
1427
1428func guessProtocol(sample []byte) string {
1429 markers := []struct {

Callers 3

proxyHTTP1Method · 0.80
proxyHTTP2Method · 0.80
proxyFallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected