[Twisted-Python] Invalid 'reason' info
soso_pub at yahoo.com
Wed May 19 16:17:25 EDT 2004
If a reactor.connectTCP() is issued and the reactor is
stopped before connecting the following is the
'reason' send to clientConnectionFailed(self,
reason.type = twisted.internet.error.ConnectError
reaseon.getErrorMessage() = An error occurred while
connecting: [Failure instance: Traceback:
twisted.internet.error.ConnectionLost, Connection to
the other side was lost in a non-clean fashion:
The type is ok but the error message is not. It says
ConnectionLost which is wrong, from both information
and class type.
Here is a quick testcode:
from twisted.internet import reactor
from twisted.internet.protocol import ClientFactory
def clientConnectionFailed(self, connector,
if __name__ == '__main__':
Side note: 2175 port is closed here si it is not
suppose to connect anyway.
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
More information about the Twisted-Python