HAProxy and TIME_WAIT

From: Daniel Rankov <daniel.rankov#gmail.com>
Date: Mon, 28 Nov 2011 18:50:07 +0200


Hi,
 I'm testing HAProxy.
Now, what I came up with and it's a real bothering me is that there are a lot of network connections type TIME_WAIT. Here is my environment - on CentOS 6 server I've set up HAProxy in tcp mode to split connections between 2 web servers with SSL / Jetty web server /. All this on the same server.
What happens is that when a browser opens a connection to HAProxy, then HAProxy opens connection to web server
Browser -> HAProxy -> WebServer
after a while the browser drops the connection and creates a new one, so that FIN packets are send from browser to Haproxy, and this side of connection is closed. Still between Haproxy and Webserver FIN packets are send as well, but now this connection goes into TIME_WAIT state. And on loaded server this will cause trouble. Isn't there a chance for HAProxy to send RST, so that conneciton will be dropped ?

Thank you ! Received on 2011/11/28 17:50

This archive was generated by hypermail 2.2.0 : 2011/11/28 18:00 CET