mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
gthread: handle removed socket in the select loop
when it happend there are good chance the socket has been removed because it timeouted on the other end. So ignore it. fix #1258
This commit is contained in:
parent
20bde96e14
commit
44d3ac8451
@ -179,6 +179,9 @@ class ThreadWorker(base.Worker):
|
|||||||
except EnvironmentError as e:
|
except EnvironmentError as e:
|
||||||
if e.errno != errno.EBADF:
|
if e.errno != errno.EBADF:
|
||||||
raise
|
raise
|
||||||
|
except KeyError:
|
||||||
|
# already removed by the system, continue
|
||||||
|
pass
|
||||||
|
|
||||||
# close the socket
|
# close the socket
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user