Jason Bodnar wrote:

> On 19-Jan-00 Doug MacEachern wrote:
> > On Fri, 14 Jan 2000, Jason Bodnar wrote:
> >
> >> A line in the proxy example of the eagle book on page 380 does not seem to
> >> work
> >> (entirely):
> >>
> >> The line:
> >>
> >> $r->headers_in->do(sub {$request->header(@_);});
> >
> > what if you change that to:
> >
> >  $r->headers_in->do(sub {$request->header(@_); 1});
> >
> > ?
>
> That sets all the headers including Connection which is a problem if it's
> Keep-Alive. It probably needs to be something like:
>
> $r->headers_in->do(sub {return 1 if $_[0] eq 'Connection';
> $request->header(@_); 1});
>
> ---
> Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems
>
> That boy wouldn't know the difference between the Internet and a hair net. --
> Jason Bodnar

I'm running a mod_perl proxy module similar to the one in the book.  I'm curious
why you say
Keep-Alive is a problem?  Is your concern performance because of timeout
settings, or something else?

--
Doug Kyle - Information Systems
Grand Rapids Public Library
"During my service in the United States Congress, I took the initiative in
creating the Internet."
-- Al Gore

Reply via email to