gzip - unexplained side effects
mdounin at mdounin.ru
Fri Nov 18 17:40:06 UTC 2011
On Fri, Nov 18, 2011 at 11:50:53AM -0500, dbanks wrote:
> I spent more time testing this particular issue. I believe that what
> appeared to be lost traffic is simply due to the shortened keepalives
> and the load balancer favoring keepalive connections over new
> connections. However, there still seems to be a link between gzip
> settings and the number of open connections (keepalives).
> gzip on;
> gzip_comp_level 1;
> gzip_disable "MSIE [1-6]\.(?!.*SV1)"
It looks like you've missed ";" here.
This is probably a reason for all "strange" effects you observe -
missing ";" causes "gzip_disable" to eat next directive in config.
> #gzip_buffers 64 4k;
> #gzip_min_length 1100; #if it fits in one packet, no worries
> #gzip_http_version 1.1;
> I have confirmed that if any one of the three config lines at the bottom
> (the ones that are commented out) are present, the number of open
> connections drops from ~7600 to ~1300. Removing that line from the
> config and reloading restores normal operation. Strange.
More information about the nginx