Problem with connection rate limiting and backend redirects

Maxim Dounin mdounin at
Fri Oct 23 23:52:20 MSD 2009


On Fri, Oct 23, 2009 at 08:39:46PM +0200, Daniel Collis-puro wrote:

> I love nginx! We're using as a caching front-end proxy in front of our
> wordpress mu at, and it's enabled us to
> handle MUCH more traffic on less hardware. Roxors!
> Anyway - I discovered an issue with connection rate limiting and backend
> redirects.
> When the backend issues a redirect for a page containing a large amount
> of html / xml content, the content of the subsequent 200 status request
> may get truncated by nginx. I had fairly aggressive rules to the effect
> of:
> limit_req_zone  $binary_remote_addr  zone=pagereqzone:10m   rate=3r/s;
> limit_req zone=pagereqzone burst=8;

Either use "limit_req ... nodelay" or upgrade/patch nginx.  This 
problem was fixed 0.8.5, but the fix isn't yet merged into stable.

Maxim Dounin

More information about the nginx mailing list