Keepalived Connections Reset after reloading the configuration (HUP Signal)

Hello,

I’m dealing with a problem. When reloading the nginx configuration,
all keepalived connections receive the TCP reset flag after I send a
HUP signal to the master process. If I comment the line responsible for
enabling the keepalive feature in the configuration, the problem
disappear (nginx version is 0.9.7).

Thanks in advance,
Jocelyn Mocquant

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,197927,197927#msg-197927

Hello!

On Fri, May 13, 2011 at 07:24:12PM -0400, Jocelyn Mocquant wrote:

Hello,

I’m dealing with a problem. When reloading the nginx configuration,
all keepalived connections receive the TCP reset flag after I send a
HUP signal to the master process. If I comment the line responsible for
enabling the keepalive feature in the configuration, the problem
disappear (nginx version is 0.9.7).

On configuration reloading nginx starts new worker processes with
new configuration and old worker processes are terminated as soon
as they finish processing of requests. All keepalive connections
in old workers are closed accordingly. HTTP/1.1 clients are
required to handle keepalive connection close, so this shoudln’t
be a problem.

It’s not clear why you see RST instead of normal close with
FIN/FIN+ACK/ACK (are you?), but this shouldn’t the problem by
itself anyway.

Maxim D.

Thanks Maxim for your answer,

If I remove the keep alive directive, all happens as expected.
Apparently,
sending USR2 and WINCH solve the problem.


Regards
Jocelyn

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs