[Twisted-Python] Closing Jabber connection

Carolina Ardohain carolinaardohain at gmail.com
Tue May 3 11:21:08 MDT 2005


Thank you.

> 
> Calling connector.disconnect() will only close the current connection.
> Since the factory returned by client.basicClientFactory is derived from
> twisted.internet.protocol.ReconnectingClientFactory, it will happily
> retry connecting unless you tell it not to.
> 
> Solution: in onAuthFailed(), call self.factory.stopTrying().
> 
> By the way, as maintainer of the Jabber stuff in Twisted I can say that
> there a fair number of issues in the twisted 1.3 implementation. All of
> them have all been resolved in 2.0, and I strongly recommend you to
> migrate your work to this.
> 
> --
> Groetjes,
> 
> ralphm
>




More information about the Twisted-Python mailing list