Skip to content

Commit

Permalink
Don't put hijackConn structure back to the pool on Close if KeepHijac…
Browse files Browse the repository at this point in the history
…kedConns is enabled. (#1629)
  • Loading branch information
askolesov authored Oct 6, 2023
1 parent 497922a commit c6a17b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2551,9 +2551,7 @@ func (c *hijackConn) Close() error {
return nil
}

conn := c.Conn
c.s.releaseHijackConn(c)
return conn.Close()
return c.Conn.Close()
}

// LastTimeoutErrorResponse returns the last timeout response set
Expand Down

0 comments on commit c6a17b9

Please sign in to comment.