Detection "connection reset by peer" in mod_perl before send a response

2013-08-10 Thread Lucas
Dear all. I need to detect that user pressed escape, apache receives it like "connection reset by peer" (I saw it with truss, freebsd strace), before my script will send a response to client. I can explain: my script works some time (about 2-3 sec), it gathers some data. Within this period it

Re: Detection "connection reset by peer" in mod_perl before send a response

2013-08-10 Thread Lucas
So basically, you need to revise the logic of your application so that it does not depend on any kind of signal coming back from the browser, because there is no guarantee that you will ever get such a signal back. I would like to start from this part of your replay. Page that client get ma