Commit dc0e1908 authored by Vincent Pelletier's avatar Vincent Pelletier

It is valid for a node to be unknown at disconnection.

Such node might have died between connection establishment and answering
identification message, possibly causing ECONNRESET.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2021 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4a025653
......@@ -66,8 +66,6 @@ class ClientElectionHandler(MasterHandler):
def _connectionLost(self, conn):
addr = conn.getAddress()
node = self.app.nm.getByAddress(addr)
assert not node.isUnknown(), (dump(self.app.uuid), node.whoSetState(),
node.getState())
node.setTemporarilyDown()
self.app.negotiating_master_node_set.discard(addr)
MasterHandler.connectionClosed(self, conn)
......
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