mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
If keepalive is 0 use None so the timeout is ignored.
This commit is contained in:
parent
0577135a76
commit
d7caa526e5
@ -30,7 +30,7 @@ class EventletWorker(AsyncWorker):
|
||||
super(EventletWorker, self).init_process()
|
||||
|
||||
def timeout_ctx(self):
|
||||
return eventlet.Timeout(self.cfg.keepalive, False)
|
||||
return eventlet.Timeout(self.cfg.keepalive or None, False)
|
||||
|
||||
def run(self):
|
||||
self.socket = GreenSocket(family_or_realsock=self.socket.sock)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user