[Twisted-Python] stopTrying, cancel connection in progress
Bosnjak Zoran ITWEP
Bosnjak at iskratel.si
Tue Aug 10 02:02:55 MDT 2004
I have a subclass of ReconnectingClientFactory.
If I do
- reactor.connectTCP(ip, port, myFactory)
- del myFactory
... it seems like stopTrying does nothing.
When the connection is finally made (for the first time), myFactory.buildProtocol is called and new protocol instance is created...
So, how do I cancel connection in progress, so that myProtocol is never created?
More information about the Twisted-Python