[Twisted-Python] Write into a persistent connection before stopping

2009-01-16 Thread Boeuf, Jean-Francois
Hello, I have an application using twisted in which the web browser opens a persistent connection when a user logs in (COMET model). I want to write data into active persistent connections at server stop to notify client to logout properly. To do that, I add a system event trigger to the reacto

[Twisted-Python] RE: Write into a persistent connection before stopping

2009-01-26 Thread Boeuf, Jean-Francois
reactor.addSystemEventTrigger('before', 'shutdown', onStop) TestService().setServiceParent(application) ##test.py ends here### > -Message d'origine- > De : Boeuf, Jean-Francois > Envoyé : vendredi 16 janvier 2009 13:26 > À :

RE: [Twisted-Python] RE: Write into a persistent connection befor estopping

2009-01-26 Thread Boeuf, Jean-Francois
d-Python] RE: Write into a persistent > connection beforestopping > > On Mon, 26 Jan 2009 16:12:57 +0100, "Boeuf, Jean-Francois" > wrote: > >Hi, > > > >As i didn't get any answer to my problem i writed a little > test code to > >reproduc