Re: handling client abort instantly?

2009-03-03 Thread Chris Kukuchka
Frank Meier wrote: Hi I'm working with a proprietary apache module which communicates (through a socket) with another backend application (I have the C source code of the module). I've now found out, when the client closes the http connection during a request, the module does not see that the

Re: handling client abort instantly?

2009-03-03 Thread Saju Pillai
Frank Meier wrote: Hi I'm working with a proprietary apache module which communicates (through a socket) with another backend application (I have the C source code of the module). I've now found out, when the client closes the http connection during a request, the module does not see that the

Re: handling client abort instantly?

2009-03-03 Thread William A. Rowe, Jr.
Saju Pillai wrote: I can think of a *hack* to determine if the client has really gone away. In your module you can possibly do client = ap_filter_t-ctx-client_socket /* ap_filter_t is either the input or output filter stack */ to get the apr client socket. You can try do a 0-byte read() on