diff options
author | Alexander Kolesov <a.kolesov@ankr.com> | 2023-10-06 23:34:33 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 21:34:33 +0200 |
commit | c6a17b9a57d2c0ff4261a6b4d58b42390f379f52 (patch) | |
tree | 1cc6a87c511042782a887bef609b1b9543fd97bc /server.go | |
parent | reset request disableSpecialHeader (#1626) (diff) | |
download | fasthttp-c6a17b9a57d2c0ff4261a6b4d58b42390f379f52.tar.gz fasthttp-c6a17b9a57d2c0ff4261a6b4d58b42390f379f52.tar.bz2 fasthttp-c6a17b9a57d2c0ff4261a6b4d58b42390f379f52.zip |
Don't put hijackConn structure back to the pool on Close if KeepHijackedConns is enabled. (#1629)
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |