[Twisted-Python] no factory.disconnect used the docs!?! (btw thx Itamar )

exarkun at divmod.com exarkun at divmod.com
Fri Apr 23 12:05:26 MDT 2004


On Fri, 23 Apr 2004 12:50:58 -0500, "john nielsen" <jn at who.net> wrote:
>Once Itamar mentioned closing connections, then I realized I needed to add:
> 
> d.addCallback(lambda _: factory.disconnect())
> 
> The descriptors are now cleaned up.
> 
> An interesting point is that I cannot find any documentation that 
> actually uses: factory.disconnect()
> 
> Did I miss it?

  Where in the docs do you see this?  There is no such method on factories.  You want to call transport.loseConnection() (which is not easily accessible for a PB connection, but it can be reached, see list archives for details on how).

  Jp




More information about the Twisted-Python mailing list