SPDY: failure loading large gzipped files

Jason Davies jason at jasondavies.com
Sun Feb 3 23:59:26 UTC 2013

I'm using nginx 1.3.11-9chl1~quantal1 from Chris Lea's PPA (which I
believe is using the latest SPDY patch, patch.spdy-60_1.3.11.txt).

Generate a large file containing random characters, e.g. using the
following Python script (~10MB):

import random
f = open("10m.html", "w")
 lambda x: "".join(map(
   lambda x: random.choice("0123456789abcdef"),

Ensure that gzip is on, and gzip_types contains the appropriate file
type (text/html in this case).

Chrome and Firefox both fail to completely load the file; they just hang
indefinitely after loading what appears to be around 1MB, though it's
hard to tell exactly from Chrome's Network tab.

Turning off gzip fixes the issue.  If there's a way to selectively
disable gzip for SPDY requests, that would also be useful to know.

Jason Davies, http://www.jasondavies.com/

More information about the nginx-devel mailing list