mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
threadWorker cancelled request should decrease nr_conns (#1387)
This commit is contained in:
parent
bc5ae5d457
commit
ee47b0030d
@ -243,6 +243,7 @@ class ThreadWorker(base.Worker):
|
|||||||
|
|
||||||
def finish_request(self, fs):
|
def finish_request(self, fs):
|
||||||
if fs.cancelled():
|
if fs.cancelled():
|
||||||
|
self.nr_conns -= 1
|
||||||
fs.conn.close()
|
fs.conn.close()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user