fix #921 by passing socket.error on to the caller (where it will be ignored)

This commit is contained in:
Jonas Maurus 2014-11-03 15:41:17 +00:00
parent 4c601ce447
commit d0f1ff659f

View File

@ -118,6 +118,10 @@ class AsyncWorker(base.Worker):
raise StopIteration()
except StopIteration:
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:
if resp and resp.headers_sent:
# If the requests have already been sent, we should close the