httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Pap" <p...@gulo.sk>
Subject timeout on request handler
Date Thu, 18 Oct 2007 14:05:37 GMT
Hi!

I need to abort the request handler in my module after a timeout.
What is the proper way to do it? Do I have to poll for the current time? How 
can I set an alarm?

request_handler(request_rec* r) {
...

while () {

  .. do some time demanding processing
  if (timeout)
    return HTTP_SERVICE_TEMPORARY_UNAVAILABLE; // or whatever

  }

...

}

Thanks,
Gabriel 


Mime
View raw message