[Neo-report] r2111 gregory - /trunk/neo/node.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat May 15 09:53:55 CEST 2010
Author: gregory
Date: Sat May 15 09:53:52 2010
New Revision: 2111
Log:
Close a connection to a node notified as DOWN.
This fix an issue where a client was notified down, dropped from node
manager then detected as disconnected: the node was not found.
Modified:
trunk/neo/node.py
Modified: trunk/neo/node.py
==============================================================================
--- trunk/neo/node.py [iso-8859-1] (original)
+++ trunk/neo/node.py [iso-8859-1] Sat May 15 09:53:52 2010
@@ -461,7 +461,11 @@
if state == NodeStates.DOWN:
logging.debug('droping node %r, found with %s %s %s %s',
node, *log_args)
- self.remove(node)
+ if node.isConnected():
+ # cut this connection, node removed by handler
+ node.getConnection().close()
+ else:
+ self.remove(node)
else:
logging.debug('updating node %r to %s %s %s %s',
node, *log_args)
More information about the Neo-report
mailing list