good morning!!!!

Skip to content
Snippets Groups Projects
Commit dd521623 authored by Ethan Dickson's avatar Ethan Dickson
Browse files

fix: cancel netconn contexts after close handshake

parent cef8e11d
No related branches found
No related tags found
No related merge requests found
......@@ -115,10 +115,12 @@ type netConn struct {
var _ net.Conn = &netConn{}
func (nc *netConn) Close() error {
defer func() {
nc.writeTimer.Stop()
nc.writeCancel()
nc.readTimer.Stop()
nc.readCancel()
}()
return nc.c.Close(StatusNormalClosure, "")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment