# HG changeset patch # User morrowa # Date 1246668628 25200 # Node ID 6577813acf125769d98e429b3e744fd0f0a559b2 # Parent 998dcacd4983f578ebe7c250d4e934b4fa5c7bc1 Fixed bug which caused PyBLIP to stop sending responses while the connection was closing. diff -r 998dcacd4983 -r 6577813acf12 Python/BLIP.py --- a/Python/BLIP.py Thu Jul 02 20:45:11 2009 -0700 +++ b/Python/BLIP.py Fri Jul 03 17:50:28 2009 -0700 @@ -140,7 +140,7 @@ @property def isOpen(self): - return self.status==kOpening or self.status==kOpen + return self.status==kOpening or self.status==kOpen or self.status==kClosing @property def canSend(self): @@ -290,6 +290,8 @@ self._dispatchMetaRequest(msg) else: self.onRequest(msg) + if not msg.response.sent: + log.error("**** Request received, but a response was never sent! Request: %r", msg) except Exception, x: log.error("Exception handling incoming message: %s", traceback.format_exc()) #FIX: Send an error reply