Re: Newbie question : client connection lost
Sebastien PASTOR <[email protected]>
| Newsgroups | gmane.comp.python.twisted.web |
|---|---|
| Message-ID | <20100511122346.GA7699@seblaptop> |
Thanks Phil, I managed to be notified when the connection is cleanly closed by the client (ie: browser is stop or close window). But i could not handle non-clean connection closure (ie: when wifi goes down client side for instance). request.finish() does not event raise any error. ... I am a bit stuck here. .. any ideas ? Thanks Seb On Mon, May 10, 2010 at 03:25:33PM +0100, Phil Mayers wrote: > On 10/05/10 16:04, Sebastien PASTOR wrote: > > Thanks graeme, > > > > Yup, i know HTTP is stateless.. My question is more how to get the exception > > from a Resource object when trying to write to a closed socket. > > There's a request.notifyFinish method somewhere in there, which returns > a deferred that callback's on success and errback's on failure. > > _______________________________________________ > Twisted-web mailing list > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web