Commit fe8a2f8e authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: make sure we don't try to read more requests if socket operation failed with EPIPE

parent 61b3e4b7
......@@ -317,6 +317,7 @@ class WSGIHandler(object):
# Broken pipe, connection reset by peer
if ex.args[0] in (errno.EPIPE, errno.ECONNRESET):
sys.exc_clear()
return
else:
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment