[Twisted-Python] New client APIs
Itamar Shtull-Trauring
twisted at itamarst.org
Sun Jul 28 11:22:52 EDT 2002
Andrew Bennetts wrote:
> FTP doesn't want any sort of reconnection funny-business going on. If the
> data connection fails, I just want to know about that and send an error
> message, rather than do any sort of reconnection. reactor.clientTCP used to
> do that. I'm not sure what the equivalent now is? Do I need to make a
> ClientFactory subclass that implements these "try once then give up" sematics?
> If so, should that be a standard utility class?
That's exactly what ClientFactory does. It does *not* reconnect
automatically - that's up to you to decide. See docstrings for
ClientFactory.connectionLost and .connectionFailed.
More information about the Twisted-Python
mailing list