Welcome! Log In Create A New Profile

Advanced

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Valentin V. Bartenev
April 10, 2012 09:04AM
On Tuesday 10 April 2012 14:53:14 Rajnesh Kumar Siwal wrote:
> Hi,
>
> The KeepAlive Timeout is set to 2 hours, but we can see that the
> connections start terminating after a few minutes.
> The KeepAlive module does not seems to be behaving as expected.

So, what's in the error log? Are you sure that the client doesn't close the
connection? Some browsers actually do after a minute or few.

[...]
> tcp_keepalive on;
> tcp_keepcnt 10;
> tcp_keepidle 7200;
> tcp_keepintvl 1m;

There are no such directives in the official nginx distribution. But you can set
SO_KEEPALIVE by parameter of the listen directive:

listen 443 ssl so_keepalive=2h:1m:10;

Please, take a look at the docs: http://nginx.org/r/listen

wbr, Valentin V. Bartenev

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

KeepAlive Not Working as expected for a Reverse Proxy Scenario

Rajnesh Kumar Siwal April 10, 2012 06:54AM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Maxim Dounin April 10, 2012 09:04AM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Valentin V. Bartenev April 10, 2012 09:04AM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Rajnesh Kumar Siwal April 11, 2012 01:42AM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Valentin V. Bartenev April 11, 2012 07:06AM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Rajnesh Kumar Siwal April 12, 2012 03:02PM

Re: KeepAlive Not Working as expected for a Reverse Proxy Scenario

Valentin V. Bartenev April 12, 2012 03:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
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