Welcome! Log In Create A New Profile

Advanced

conditionally disable keepalives

Ryan Malayter
September 17, 2010 12:32PM
Is it possible to conditionally disable keep-alives via some sort of
configuration? I have a customer with a buggy proxy that they cannot
fix short-term, but I do not want to disable keepalives entirely for
every user. With keepalives enabled, they intermittently see "raw"
HTTP streams in the browser, headers and all. Thousands of other
customers have no issues, of course, as they aren't using this
particular proxy (Trend Micro Viruswall 6).

The "keepalive_timeout" directive will not accept a variable value.

Right now I have a configuration that conditionally adds a
"Connection: close" header based on $remote_addr, but that gets sent
in addition to the "Connection: keepalive" header set by nginx. While
it seems to work for this particular buggy proxy, sending multiple
"Connection" headers is also an HTTP specification violation, I think.

The only other thing I can think of to do is a rewrite to a different
server or location with "keepalive_timeout 0" specified, but will that
even work, or are keepalives handled at the connection layer?

nginx 0.7.65 on Ubuntu 10.04
--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

conditionally disable keepalives

Ryan Malayter September 17, 2010 12:32PM

Re: conditionally disable keepalives

Cliff Wells September 17, 2010 12:38PM

Re: conditionally disable keepalives

Ryan Malayter September 17, 2010 01:24PM

Re: conditionally disable keepalives

Ryan Malayter September 17, 2010 02:42PM

Re: conditionally disable keepalives

Eugaia September 17, 2010 01:50PM

Re: conditionally disable keepalives

Maxim Dounin September 17, 2010 02:52PM

Re: conditionally disable keepalives

Eugaia September 17, 2010 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready