[Twisted-Python] quitting clients connected to a server from serverside

Alvin Delagon adelagon at gmail.com
Tue May 20 13:22:47 EDT 2008

I mean some kind of a command from the server to trigger the cleanup of the
client. For example: on some cases in our xmpp server, when a currently
logged in user logged in again with using the same account from a different
location; we forcefully close the last session by first sending a stream
document end to the client ("</stream>") before doing a
transport.loseConnection(). Our client then triggers the cleanup procedure
upon receiving </stream> from the server. I haven't tried my hands on
twisted.spread yet but you could implement something like this. :)

On Wed, May 21, 2008 at 12:09 AM, Patrick Scharrenberg <pittipatti at web.de>

> Hi Alvin,
> Thanks for your answer!
> > If you want your client to do a certain routine when the server shuts
> > him down, you could send a custom message to the client first that will
> > trigger some cleanup procedure you have in your client.
> Yes indeed I have to do some cleanup first.
> What do you mean with "send a custom message"?
> Patrick
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080521/b301c213/attachment.htm 

More information about the Twisted-Python mailing list