httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Tanner <...@wip.ww.tu-berlin.de>
Subject [users@httpd] cgi timeout / where to configure?
Date Thu, 30 Mar 2006 08:27:25 GMT
Hi,

in Apache 2.2.0, it seems that the Timeout-directive in httpd.conf does 
not configure when cgi-scripts time out?

I have set this directive to value 30000, but nevertheless, my scripts 
do time out after 600 seconds. I find the following error in my error log:

[Wed Mar 29 17:52:18 2006] [warn] [client 10.10.1.19] Timeout waiting 
for output from CGI script /home/ant/public_html/cgi-bin/calloptra.pl

I have grepped for this message in the source code, and find it in 
mod_cgi.c:

static apr_status_t cgi_bucket_read(apr_bucket *b, const char **str,
                                   apr_size_t *len, apr_read_type_e block)
...

   timeout = block == APR_NONBLOCK_READ ? 0 : data->r->server->timeout;

   do {
       const apr_pollfd_t *results;
       apr_int32_t num;

       rv = apr_pollset_poll(data->pollset, timeout, &num, &results);
       if (APR_STATUS_IS_TIMEUP(rv)) {
           if (timeout) {
               ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, data->r,
                             "Timeout waiting for output from CGI script 
%s",
                             data->r->filename);


Could someone please give a hint as to where to configure the time after 
which this error is thrown?

Thanks, Andreas.



---------------------------------------------------------------------
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


Mime
View raw message