[Twisted-Python] Looking for help dealing with ClientService reconnections

Glyph glyph at twistedmatrix.com
Sat May 7 16:30:55 MDT 2016


> On May 7, 2016, at 12:19 PM, Kevin Conway <kevinjacobconway at gmail.com> wrote:
> 
> I'm still working through your code example and trying to get a better grasp of what, exactly, you're trying to implement as far as client behavior is concerned. In the meantime, it sounds, on the surface, like you are trying to implement a form of the ReconnectingClientFactory: http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html <http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html>.
> 

Just to clear up this point: ReconnectingClientFactory is the old, bad way of doing things, that only works with connectTCP/connectSSL/connectUNIX et. al., and not with endpoints.  ClientService <https://twistedmatrix.com/documents/16.1.1/api/twisted.application.internet.ClientService.html> is the new, good way, only available since the latest release.

-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160507/bd78f16e/attachment-0002.html>


More information about the Twisted-Python mailing list