Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 8431 invoked from network); 17 Jan 2008 22:34:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2008 22:34:34 -0000 Received: (qmail 70241 invoked by uid 500); 17 Jan 2008 22:34:17 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 70194 invoked by uid 500); 17 Jan 2008 22:34:16 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 70182 invoked by uid 99); 17 Jan 2008 22:34:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 14:34:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ronp@cnet.com designates 216.239.127.188 as permitted sender) Received: from [216.239.127.188] (HELO c12-smtp1s.cnet.com) (216.239.127.188) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 22:33:51 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.24,304,1196668800"; d="scan'208,217";a="267673710" Received: from c12-erp-netscaler2-pool.cnet.cnwk (HELO [10.17.36.212]) ([10.16.144.152]) by c12-smtp1s.cnet.cnwk with ESMTP; 17 Jan 2008 14:33:57 -0800 Subject: mod_proxy and timeouts From: Ronald Park To: dev@httpd.apache.org Content-Type: text/plain Organization: CNET Networks, Inc. Date: Thu, 17 Jan 2008 17:35:26 -0500 Message-Id: <1200609326.4389.251.camel@lost.cnet.cnwk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2-2.1mdv2007.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Folks, I'm trying to get ProxyTimeout to work and having no luck. I've set up 2 Apache instances in my network. These are Apache 2.0.59 servers built on a 64 bit Redhat EL4 box. On the first, I've just added the following directives: ProxyTimeout 2 ProxyPass /cgi-bin http:///cgi-bin/ On the second machine, I have the following simple CGI: #!/bin/sh sleep 30 echo Content-type: text/html echo echo "" echo "Hello" echo "" echo "Hello" echo "" Why doesn't this timeout? For 'fun', I' fiddled with the code, namely proxy_http.c, right before the call to ap_proxy_connect_to_backend, I reduce the value of 'timeout' in the conf struct by a factor of 10 (so from 2000000 to 200000, etc) each request. As I reload the page, nothing different happens: each request takes 30 secs to finally, successfully return... until I finally get down to '200'. Then, I finally get a 502, BAD GATEWAY error. So at that tiny timeout (200 microsecs?), I'm guessing the low level connect times out. So in some regards, timeout is working. I did find what I think is a bug in the merge_proxy_config function... although it merges the 'timeout' field member in the config structure, it's not merging the 'timeout_set' member. However, fixing that did not resolve my issue. :( Is there something wrong with my test? Thanks, Ron