mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
make sure we really set the socket to blocking
This commit is contained in:
parent
44de346202
commit
4894a1941a
@ -23,7 +23,8 @@ class SyncWorker(base.Worker):
|
|||||||
def run(self):
|
def run(self):
|
||||||
# self.socket appears to lose its blocking status after
|
# self.socket appears to lose its blocking status after
|
||||||
# we fork in the arbiter. Reset it here.
|
# we fork in the arbiter. Reset it here.
|
||||||
[s.setblocking(0) for s in self.sockets]
|
for s in self.sockets:
|
||||||
|
s.setblocking(0)
|
||||||
|
|
||||||
ready = self.sockets
|
ready = self.sockets
|
||||||
while self.alive:
|
while self.alive:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user