On Sat, 18 Dec 1999, Eric Cholet wrote:

> On Sat, 18 Dec 1999, Stas Bekman wrote:
> > Lately I've received a few requests to document the KeepAlive directive
> > and its implications on mod_perl behavior.
> > 
> > >From what I see, mod_perl overrides the whatever settings you have in your
> > config file and sets the KeepAlive to Off. I've tested it with KeepAlive
> > On and KeepAliveTimeout of 15 secs and when I do a raw access by telneting
> > to the port, I get server disconnection as soon as the request is
> > completed.
> > 
> > Is this correct? and I should document that KeepAlive directives are
> > irrelevant for mod_perl server (all but static object requests)?
> 
> That's not what I'm seeing, KeepAlives work the way I configure them.
> Maybe this is true when accessing a mod_perl server through a front-end proxy,
> but not when accessing a mod_perl server directly.

Of course I was emulating a very bad client :) Thank you all for the
helpful comments. KeepAlive behaves properly under mod_perl, which is too
bad for me, because I had it enabled all the time :( All my servers were
waiting for 15 secs (KeepAliveTimeout) after serving each request... awful

Going to document this in the guide...

Here is a summary of various requests for testing the keepalive
functionality under mod_perl (direct request! no proxy in the middle)

GET /perl/test.pl HTTP/1.0
Connection: keep-alive

==> doesn't work!

GET / HTTP/1.0
Connection: keep-alive

==> doesn't work!

HEAD / HTTP/1.0
Connection: keep-alive

==> works!

GET / HTTP/1.1
Host: localhost

==> works!

GET /perl/test.pl HTTP/1.1
Host: localhost

==> works!

I use Apache/1.3.10-dev (Unix) mod_perl/1.21_01-dev 

For those who don't know how one can emulate the agent, you simply telnet
to the port the server listens to and talk directly to it:

% telnet localhost 8080


_______________________________________________________________________
Stas Bekman    mailto:[EMAIL PROTECTED]      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to