You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Harnish, Joe" <jh...@ci.grand-rapids.mi.us> on 2002/06/19 23:19:43 UTC
Removing the keepalive from the header when data has been sent.
Hello all,
I am still working on getting post to work properly with Internet Explorer
with KeepAlives on, where the first "post" from the form will work and each
beyond that will not send anything to Apache. From additional research I
think I may have come across a possible solution (unless someone has a
solution for this).
I found a message stating that the browser will remove the Keepalive
connection if it does not receive a keepalive piece in the header. So my
question is, "Is there a way to easily remove the keepalive piece from the
header if my script actually returns data? "
Thanks
Joe
Re: Removing the keepalive from the header when data has been sent.
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> I found a message stating that the browser will remove the Keepalive
> connection if it does not receive a keepalive piece in the header. So
> my question is, "Is there a way to easily remove the keepalive piece
> from the header if my script actually returns data? "
well, I don't know about that (or the problem you're having), but
can't you just use something like
BrowserMatch "MSIE" nokeepalive
in your httpd.conf?
Alternatively, you might be able to use your own criteria and set
$r->headers_out->set(Connection => 'close');
in some handler
HTH
--Geoff
Re: Removing the keepalive from the header when data has been sent.
Posted by Igor Sysoev <is...@rambler-co.ru>.
On Wed, 19 Jun 2002, Harnish, Joe wrote:
> I am still working on getting post to work properly with Internet Explorer
> with KeepAlives on, where the first "post" from the form will work and each
> beyond that will not send anything to Apache. From additional research I
> think I may have come across a possible solution (unless someone has a
> solution for this).
Why do you need keep-alive between MSIE and mod_perl ?
It wastes server resources.
> I found a message stating that the browser will remove the Keepalive
> connection if it does not receive a keepalive piece in the header. So my
> question is, "Is there a way to easily remove the keepalive piece from the
> header if my script actually returns data? "
You can try
$r->subprocess_env('nokeepalive' => 1);
I do not know if there is mod_perl interface to
Apache r->connection->keepalive field.
Igor Sysoev
http://sysoev.ru