[users@httpd] cgi timeout / where to configure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux