Commit 9a931e3c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Call connectionClosed() when a connection is aborted.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2075 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6a0d14b3
......@@ -65,16 +65,19 @@ class EventHandler(object):
except BrokenNodeDisallowedError:
conn.answer(Errors.Broken('go away'))
conn.abort()
self.connectionClosed(conn)
except NotReadyError, message:
if not message.args:
message = 'Retry Later'
message = str(message)
conn.answer(Errors.NotReady(message))
conn.abort()
self.connectionClosed(conn)
except ProtocolError, message:
message = str(message)
conn.answer(Errors.ProtocolError(message))
conn.abort()
self.connectionClosed(conn)
def checkClusterName(self, name):
# raise an exception if the fiven name mismatch the current cluster name
......
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