httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46316] New: Proxied SSI ProxyTimeout render failure
Date Mon, 01 Dec 2008 11:52:32 GMT

           Summary: Proxied SSI ProxyTimeout render failure
           Product: Apache httpd-2
           Version: 2.2.10
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_proxy


It seems that the mod_proxy ProxyTimeout has a nasty side effect when it 
kicks in when used with proxied SSI. Everything after a proxied (and timed out)
SSI is ignored and not rendered.

For example the following simple shtml -> 

     <h1>SSI CGI via a proxy test</h1> 
     <!--#include virtual="test-include.html" --> 
     <!--#include virtual="proxy/cgi-bin/perl-sleep.cgi?${QUERY_STRING}" --> 
      Content that must be displayed even after a proxy timeout 

Has render problems with the CGI is timedout via ProxyTimeOut.
It appear to interrupt the subsequent output filter on timeout? 

The proxy configuration is as follows -->
Apache 2.2.10 (SHTML+mod_proxy+SSI):80 --> Squid:3128 --> Apache

   <Proxy balancer://squidbalancer> 
      BalancerMember http://localhost:3128/ 
      ProxySet lbmethod=bytraffic 
      ProxySet timeout=1 
    ProxyTimeout 2 
    RewriteEngine On 
    RewriteRule ^/proxy/(.*) balancer://squidbalancer/$1 [P,QSA,L] 

If the ProxyTimeout kicks in before Squid+Apache/CGI returns the 
following is rendered: 

 <h1>SSI CGI via a proxy test</h1> 
             **MISSING HTML HERE** 

However when I increase the ProxyTimeout in order that Squid times 
out and not the calling Apache before the CGI returns the render looks a 
tad better. 

At least the full shtml is rendered. (Plus some horrid squid 
response). Please see below.

I need proxied server side includes where a ProxyTimeout ensures that the
backend server does not consume and hold up all the requests/threads.

Please do let me have your thoughts 

 <h1>SSI CGI via a proxy test</h1> 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
 <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
 <TITLE>ERROR: The requested URL could not be retrieved</TITLE> 
 <STYLE type="text/css"><!--BODY{background-color:#ffffff;font- 
 <H2>The requested URL could not be retrieved</H2> 
 <HR noshade size="1px"> 
 While trying to retrieve the URL: 
 <A HREF="">http:// 
 The following error was encountered: 
 Read Timeout 
 The system returned: 
 <PRE><I> [No Error]</I></PRE> 
 A Timeout occurred while waiting to read data from the network. The 
 or server may be down or congested. Please retry your request. 
 <P>Your cache administrator is <A 
 <BR clear="all"> 
 <HR noshade size="1px"> 
 Generated Wed, 26 Nov 2008 12:19:09 GMT by PC- (squid/2.6.STABLE17) 
 Content that must be displayed even after a proxy timeout 

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message