()
| 115 | var _ net.Conn = &netConn{} |
| 116 | |
| 117 | func (nc *netConn) Close() error { |
| 118 | nc.writeTimer.Stop() |
| 119 | nc.writeCancel() |
| 120 | nc.readTimer.Stop() |
| 121 | nc.readCancel() |
| 122 | return nc.c.Close(StatusNormalClosure, "") |
| 123 | } |
| 124 | |
| 125 | func (nc *netConn) Write(p []byte) (int, error) { |
| 126 | nc.writeMu.forceLock() |