Skip to content

Commit

Permalink
bug: clean up the remote address regardless of c.rawConn
Browse files Browse the repository at this point in the history
Fixes #544
  • Loading branch information
panjf2000 committed Mar 18, 2024
1 parent 6d01da7 commit 193cfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ func newTCPConn(nc net.Conn, el *eventloop) (c *conn) {
func (c *conn) release() {
c.ctx = nil
c.localAddr = nil
c.remoteAddr = nil
if c.rawConn != nil {
c.rawConn = nil
c.remoteAddr = nil
}
c.inboundBuffer.Done()
bbPool.Put(c.buffer)
Expand Down

0 comments on commit 193cfe3

Please sign in to comment.