Merge pull request #931 from laterpay/feature/921-ignore-async-handle_request-socket-error

Feature/921 ignore async handle request socket error
This commit is contained in:
Randall Leeds 2014-11-12 13:05:09 -08:00
commit 96a15b38a8

View File

@ -121,6 +121,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
six.reraise(*sys.exc_info())
except Exception:
if resp and resp.headers_sent:
# If the requests have already been sent, we should close the