[Neo-report] r1897 gregory - /trunk/neo/connection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 5 22:23:23 CET 2010


Author: gregory
Date: Fri Mar  5 22:23:22 2010
New Revision: 1897

Log:
Send a notification when an unexpected answer is received.

Modified:
    trunk/neo/connection.py

Modified: trunk/neo/connection.py
==============================================================================
--- trunk/neo/connection.py [iso-8859-1] (original)
+++ trunk/neo/connection.py [iso-8859-1] Fri Mar  5 22:23:22 2010
@@ -112,6 +112,8 @@
                 logging.debug('Apply handler %r', self._pending[0][1])
         else:
             logging.error('Unexpected answer: %r', packet)
+            notification = Packets.Notify('Unexpected answer: %r' % packet)
+            self._connection.notify(notification)
             self._connection.abort()
             handler.peerBroken()
 





More information about the Neo-report mailing list