[Twisted-web] Newbie question : client connection lost
graemeglass at gmail.com
Mon May 10 10:00:03 EDT 2010
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 !
HTTP is stateless, you have no way of knowing if the client closed the
Take a look at this, for some ideas
More information about the Twisted-web