mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Needed to s/break/continue/ with new loop.
This commit is contained in:
parent
9e717b8f9c
commit
9dde33c15c
@ -122,12 +122,12 @@ class Worker(object):
|
|||||||
self.notify()
|
self.notify()
|
||||||
ret = select.select([self.socket], [], self.PIPE, self.timeout)
|
ret = select.select([self.socket], [], self.PIPE, self.timeout)
|
||||||
if ret[0]:
|
if ret[0]:
|
||||||
break
|
continue
|
||||||
except select.error, e:
|
except select.error, e:
|
||||||
if e[0] == errno.EINTR:
|
if e[0] == errno.EINTR:
|
||||||
break
|
continue
|
||||||
if e[0] == errno.EBADF and self.nr < 0:
|
if e[0] == errno.EBADF and self.nr < 0:
|
||||||
break
|
continue
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def handle(self, client, addr):
|
def handle(self, client, addr):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user