mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1052 from jaingaurav/oserror
Catch OSError as well as ValueError on race condition
This commit is contained in:
commit
d478968d59
@ -429,7 +429,7 @@ class Arbiter(object):
|
|||||||
try:
|
try:
|
||||||
if time.time() - worker.tmp.last_update() <= self.timeout:
|
if time.time() - worker.tmp.last_update() <= self.timeout:
|
||||||
continue
|
continue
|
||||||
except ValueError:
|
except (OSError, ValueError):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not worker.aborted:
|
if not worker.aborted:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user