The following reply was made to PR mod_proxy/1166; it has been noted by GNATS.

From: Dean Gaudet <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc:  Subject: mod_proxy/1166: ``nph-'' not honored (no buffering) for 
ProxyRemote mapping
Date: Sat, 20 Dec 1997 13:48:33 -0800 (PST)

 ---------- Forwarded message ----------
 Date: Mon, 10 Nov 1997 14:03:15 +0100
 From: Hermann Hueni <[EMAIL PROTECTED]>
 Organization: GLUE Software Engineering, CH-3012 Bern
 Newsgroups: comp.infosystems.www.servers.unix
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Apache as a proxy to CGI (quick patch)
 
 We run apache 1.2.4 as a non-caching proxy for a couple of CGI scripts
 that execute on a different server which we want to hide.
 
 The apache proxy module uses a large buffer for all data returned by the
 remote CGI. This is very undesirable in our case, since our data-source
 is slow and data arrives in small increments.
 Whith the standard apache set-up (including the proxy-module) the
 browser client must wait a long time before anything is returned.
 
 My request for change to the apache development team (mod_proxy/1166)
 has been suspended.
 
 To overcome this annoying limitation, I developed the following
 quick patch to the source in src/modules/proxy.
 Somebody else might find this useful :-)
 
 Apache 1.3b2
 ------------------------------------------------------------------
 *** proxy_util.c.orig   Fri Nov  7 18:11:35 1997
 --- proxy_util.c        Mon Nov 10 09:23:37 1997
 ***************
 *** 471,476 ****
 --- 471,481 ----
             n -=3D w;
             o +=3D w;
         }
 +       /*
 +        * [EMAIL PROTECTED] 10.11.97 I don't want excessive buffering !
 +        */
 +         if (!con->aborted)
 +           bflush(con->client);
       }
       if (!con->aborted)
         bflush(con->client);
 ------------------------------------------------------------------
 
 Apache 1.2.4
 ------------------------------------------------------------------
 *** proxy_util.c.orig   Mon Nov 10 09:26:29 1997
 --- proxy_util.c        Mon Nov 10 09:24:29 1997
 ***************
 *** 427,432 ****
 --- 427,437 ----
               n-=3Dw;
               o+=3Dw;
           }
 +       /*
 +        * [EMAIL PROTECTED] 10.11.97 I don't want excessive buffering !
 +        */
 +         if (!con->aborted)
 +           bflush(con->client);
       }
       if (!con->aborted)
           bflush(con->client);
 =20
 -----------------------------------------------------------------
 
 
 -- Hermann H=FCni
    ________    __=20
 __________________________________________________________
   / ____/ /   / / / / ____/   GLUE Software Engineering AG
  / / __/ /   / / / / __/      Zieglerstr. 34,    CH-3007 Bern,  =20
 Switzerland
 / /_/ / /___/ /_/ / /___      Phone: (+41)31-3853011    =20
 Fax:(+41)31-3853018
 \____/_____/\____/_____/______Email: [EMAIL PROTECTED]
 http://www.glue.ch/~hueni
 

Reply via email to