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

2013-08-10 Thread Torsten Förtsch
On 10/08/13 15:19, Lucas wrote: > But if apache receives "connection reset by peer" I would like to handle > it with mod_perl. > > And my question was - how to do that. http://foertsch.name/ModPerl-Tricks/postgres-notifications/index.shtml#goto8 Have a look at the wait_for_notification function.

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

2013-08-10 Thread Andy Colson
On 08/10/2013 06:54 AM, Lucas wrote: 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 gat

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

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

2013-08-10 Thread André Warnier
Lucas wrote: 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

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