[Twisted-Python] Trivial bug in StandardIO.connectionLost()

Sam Couter sam at couter.dropbear.id.au
Fri Apr 2 07:50:26 EST 2004


StandardIO.connectionLost() loses the reason for the lost connection.

Trivial patch:

Index: twisted/internet/stdio.py
===================================================================
--- twisted/internet/stdio.py	(revision 10451)
+++ twisted/internet/stdio.py	(working copy)
@@ -106,4 +106,4 @@
     def connectionLost(self, reason):
         """The connection was lost.
         """
-        self.protocol.connectionLost()
+        self.protocol.connectionLost(reason)

-- 
Sam "Eddie" Couter  |  mailto:sam at couter.dropbear.id.au
Debian Developer    |  mailto:eddie at debian.org
                    |  jabber:sam at teknohaus.dyndns.org
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040402/79bc304c/attachment.pgp 


More information about the Twisted-Python mailing list