You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by John Zhang <jo...@yahoo.com> on 2008/08/05 22:47:30 UTC

Can you set the request timeout dynamically within a module?

Hi Everyone,
    We have an output filter.  Some requests take a "VERY" long time for the filter to process (I know many of you have questions here.  But the logic is in the page).  We would like to know if there is a way for the module (our output filter) to tell apache to not terminate "THIS" request.  We do not want to increase the default timeout.

   I looked at the server_rec struct, it has a timeout member (default = 300 secs, yes this is a very long time).  Is this the one that controls the request timeout? If yes, I guess it controls every request.  And is it a good idea for a request to change the server_rec struct?  Even if it is OK to change it, will it take affect for the current request?

  Or I am looking at a wrong place/parameter.

Thanks in advance!
John