You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michal Bursa <ap...@cdsw.cz> on 2003/06/06 09:16:56 UTC

[users@httpd] Detecting connection abort

Hello,

I am using a Windows version of Apache 2.0.45 with my custom module which is handling sepecial requests. Each request takes several seconds to process (up to 10) and consumes a lot of CPU time. Therefore I would appreciate the ability  to detect that a user has pressed the STOP button (aborted connection), so that I can stop the processing of current request.

I have found a flags1 field in the conn_rec structure with the aborted bit, but this is not set after the connection is dropped.

So I want to ask someone for help. Is it possible to detect aborted connection while processing the request? If so, how?

Thank you for any help.
Michal Bursa

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org