[Twisted-Python] How to forcibly disconnect PB client?

Itamar Shtull-Trauring itamar at itamarst.org
Thu Aug 25 12:51:19 EDT 2005


On Thu, 2005-08-25 at 07:57 -0600, Steve Freitas wrote:

> In some cases I need to force a client to disconnect. Is there some
> factory call that I can use to do this? On the client side, I know I can
> use factory._broker.transport.loseConnection(), but on the server side,
> though I've looked at the source a bit, I'm not sure how to get at the
> correct transport.

remoteReference.broker.transport.loseConnection()






More information about the Twisted-Python mailing list