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