[Twisted-web] Newbie question : client connection lost
sebastien.pastor at gmx.com
Mon May 10 11:04:57 EDT 2010
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.
On Mon, May 10, 2010 at 04:00:03PM +0200, Graeme Glass wrote:
> On Mon, May 10, 2010 at 4:44 PM, Sebastien PASTOR
> <sebastien.pastor at gmx.com> wrote:
> > Hi !
> > I am very new at Twisted. What i am trying to achieve is a simple web
> > service using basic HTTTP GET and POST requests. My big requirement is
> > being able to detect when the connection is closed client side. Bottom
> > line being : i want to know that each GET or POST result has been
> > successfully or not sent to the client. I could not managed to do that using WSGI.
> > Is there way to try: catch sockets exception using Twisted or should i
> > go the async way and use notifyFinish() and friends ?
> > Thanks in advance !
> > Seb
> HTTP is stateless, you have no way of knowing if the client closed the
> Take a look at this, for some ideas
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
More information about the Twisted-web