[Twisted-Python] stopTrying, cancel connection in progress
![](https://secure.gravatar.com/avatar/92d6c420bed6d6f0a5668b4ca1200567.jpg?s=120&d=mm&r=g)
Aug. 10, 2004
8:02 a.m.
I have a subclass of ReconnectingClientFactory. If I do - reactor.connectTCP(ip, port, myFactory) and - 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? Thanks! Zoran Bosnjak
7498
Age (days ago)
7498
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bosnjak Zoran ITWEP