mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix eventlet worker
make sure we patch the listening socket in the worker
This commit is contained in:
parent
9a83d719b2
commit
308081948f
@ -66,6 +66,7 @@ class EventletWorker(AsyncWorker):
|
||||
def run(self):
|
||||
acceptors = []
|
||||
for sock in self.sockets:
|
||||
sock = GreenSocket(sock)
|
||||
sock.setblocking(1)
|
||||
hfun = partial(self.handle, sock)
|
||||
acceptor = eventlet.spawn(eventlet.serve, sock, hfun,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user