morgon has asked for the wisdom of the Perl Monks concerning the following question:
I have an apache 2.2.16 with mod_perl 2.0.4 all built from source running on Ubuntu 10.04.
KeepAlive is On in the apache-config.
When using a http 1.1 client everything works as expected (connections are reused), but when using an http 1.0 client that sets a "Connection: Keep-Alive" header (e.g. wget) I've noticed something strange:
For static content connections are reused, but for all requests that are handled by mod_perl the connection is closed by the server (i.e. mod_perl/apache) after the first http-request (I have traced the tcp-level with wireshark).
Why is that?
Is there a way to configure mod_perl so that a keep-alive header is honored when using http 1.0?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: http 1.0 keep-alive and mod_perl
by Anonymous Monk on Oct 12, 2010 at 02:52 UTC | |
by morgon (Priest) on Oct 12, 2010 at 07:26 UTC | |
by Anonymous Monk on Oct 12, 2010 at 07:38 UTC | |
|
Re: http 1.0 keep-alive and mod_perl
by aquarium (Curate) on Oct 12, 2010 at 05:45 UTC | |
by morgon (Priest) on Oct 12, 2010 at 07:33 UTC | |
by Khen1950fx (Canon) on Oct 12, 2010 at 15:39 UTC | |
by morgon (Priest) on Oct 13, 2010 at 14:37 UTC |