[Twisted-Python] stopTrying, cancel connection in progress

Bosnjak Zoran ITWEP Bosnjak at iskratel.si
Tue Aug 10 04:02:55 EDT 2004

I have a subclass of ReconnectingClientFactory.

If I do
- reactor.connectTCP(ip, port, myFactory)
- myFactory.stopTrying()
- 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?

Zoran Bosnjak

More information about the Twisted-Python mailing list