Patch proposal: allow alternatives to 503 status code in limit_req module

2013-03-01 Thread Nick Marden
Hey there, I've been doing some work using limit_req to prevent overzealous clients from DOS'ing my site. Specifically, I wanted to use a different HTTP status code such as 420 or 429 so that it would be straightforward to show a "hey man, chill out" page rather than my generic 503 error page. At

Re: problem with cache size

2013-03-01 Thread Maxim Dounin
Hello! On Fri, Mar 01, 2013 at 05:41:18PM +0200, Anatoli Marinov wrote: > Hi, > I have a strange problem with cache size on XFS. I tried to debug it and I > found something. > > First there is a test request for 1 file which is 10 MB. > In the function ngx_http_file_cache_update I have counted s

problem with cache size

2013-03-01 Thread Anatoli Marinov
Hi, I have a strange problem with cache size on XFS. I tried to debug it and I found something. First there is a test request for 1 file which is 10 MB. In the function ngx_http_file_cache_update I have counted size 17039360 because st_blocks = 33280, st_size = 10486040. After that I am trying t

[nginx] svn commit: r5097 - trunk/src/http

2013-03-01 Thread vbart
Author: vbart Date: 2013-03-01 14:55:42 + (Fri, 01 Mar 2013) New Revision: 5097 URL: http://trac.nginx.org/nginx/changeset/5097/nginx Log: Allocate request object from its own pool. Previously, it was allocated from a connection pool and was selectively freed for an idle keepalive connection.