()
| 6955 | } |
| 6956 | |
| 6957 | func (w *wrapCloseConn) Close() error { |
| 6958 | defer w.closeOnce.Do(func() { atomic.AddInt32(&w.lis.connsOpen, -1) }) |
| 6959 | return w.Conn.Close() |
| 6960 | } |
| 6961 | |
| 6962 | // TestServerClosesConn ensures conn.Close is always closed even if the client |
| 6963 | // doesn't complete the HTTP/2 handshake. |