Yes, it turns out that it isn't a problem with nginx, it is a problem with the iptables configuration on the load-balancer. It isn't a timeout problem though. The iptables configuration was causing the FIN packets to be dropped so that they weren't passed on to the realservers. This post explains the problem (and possible solution) nicely: http://www.mail-archive.com/lvs-users@linuxvirtualserveby dwass - Nginx Mailing List - English
Have a strange problem. We have a configuration (this is only a part of the configuration) that has problems if the upstream server is a load-balanced server using ipvs/keepalived. Here is the relevant part of the configuration: upstream fb_server { server foobar:8080; } server { listen 80; server_name f.b.com; location /fb/ { proxy_pass http://fb_server; } }by dwass - Nginx Mailing List - English