On Fri, Mar 06, 2009 at 04:55:21PM -0500, Timothy Olson wrote: > I'm using HAProxy 1.3.15.7 to load-balance three Tomcat instances, and to > fork requests for static content to a single Apache instance. I've found > that after the initial HTML page is loaded from Tomcat, the browser's > subsequent first request for a static image from Apache gets dropped > (neither HAProxy nor Apache logs the request, but I can sniff it). The rest > of the images after the first load fine. If I create a small, static, test > HTML page on Tomcat (making the images come from a different backend), it > shows the first image on the page as broken. If I put the exact same HTML > page on Apache (no backend switch required), it works fine. I wonder if we > have a configuration problem, or perhaps this is a bug in the way HAProxy > deals with an HTTP keepalive request that spreads to a second backend?
Haproxy does not support HTTP keepalive yet. However it can workaround it using "option httpclose", which you should set in your defaults section. What you describe is typically what happens without the option. Regards, Willy

