Commit b18bc173 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Handle 'broken pipe' errors as a connection closed.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1523 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0d67025e
...@@ -128,7 +128,7 @@ class SocketConnector: ...@@ -128,7 +128,7 @@ class SocketConnector:
except socket.error, (err, errmsg): except socket.error, (err, errmsg):
if err == errno.EAGAIN: if err == errno.EAGAIN:
raise ConnectorTryAgainException raise ConnectorTryAgainException
if err == errno.ECONNRESET: if err in (errno.ECONNRESET, errno.EPIPE):
raise ConnectorConnectionClosedException raise ConnectorConnectionClosedException
raise ConnectorException, 'send failed: %s:%s' % (err, errmsg) raise ConnectorException, 'send failed: %s:%s' % (err, errmsg)
......
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