()
| 32 | } |
| 33 | |
| 34 | func (c *connPipe) Close() error { |
| 35 | b := [1]byte{} // marker that the connection has been closed |
| 36 | c.wconn.SetWriteDeadline(time.Time{}) |
| 37 | c.wconn.Write(b[:]) |
| 38 | c.wconn.Close() |
| 39 | c.rconn.Close() |
| 40 | return nil |
| 41 | } |
| 42 | |
| 43 | func (c *connPipe) Read(b []byte) (int, error) { |
| 44 | // See comments in Write. |
no test coverage detected