httpd-users mailing list archives

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

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] Timeout waiting 
for output from CGI script /home/ant/public_html/cgi-bin/

I have grepped for this message in the source code, and find it in 

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 

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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message