HTTP pipelining, Tomcat 7 and Firefox 4

During an optimisation cycle for Bazarooma aimed at further reducing latencies I started experimenting with Firefox’ HTTP pipelining [1] feature, which is disabled by default. This can be enabled by typing about:config in the URL bar, locating the network.http.pipelining entry and setting it to true. While Firebug did not report any measurable improvement, it turned out that the wrong resoures were randomly returned for certain requests. I.e. a request for a JSON document would return an JPEG image, images would get mixed up and even the home page would occasionally be substituted for other resources.

To make things more interesting, this did not happen when a Varnish reverse proxy was inserted between the browser and the webserver. Unfortunately I’ve never established on which side the problem lies, but pipelining needs to stay off for now.

[1] Wikipedia article on HTTP pipelining

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.