make sure to catch EPIPE and ECONNRESET error

This commit is contained in:
benoitc 2012-11-13 09:52:37 +01:00
parent 9fb0d9669c
commit 6f726e0ec9

View File

@ -47,6 +47,8 @@ class AsyncWorker(base.Worker):
self.log.debug("Ignored premature client disconnection. %s", e)
except StopIteration as e:
self.log.debug("Closing connection. %s", e)
except socket.error:
raise # pass to next try-except level
except Exception as e:
self.handle_error(req, client, addr, e)
except socket.error as e: