mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix #921 by passing socket.error on to the caller (where it will be ignored)
This commit is contained in:
parent
4c601ce447
commit
d0f1ff659f
@ -118,6 +118,10 @@ class AsyncWorker(base.Worker):
|
|||||||
raise StopIteration()
|
raise StopIteration()
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
raise
|
raise
|
||||||
|
except socket.error:
|
||||||
|
# If the original exception was a socket.error we delegate
|
||||||
|
# handling it to the caller (where handle() might ignore it).
|
||||||
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
if resp and resp.headers_sent:
|
if resp and resp.headers_sent:
|
||||||
# If the requests have already been sent, we should close the
|
# If the requests have already been sent, we should close the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user