Maybe a bug in Nginx 0.6.30 x86_64

Igor Sysoev is at rambler-co.ru
Mon May 12 09:58:21 MSD 2008


On Sun, May 11, 2008 at 02:24:56PM +0000, Fran??ois Battail wrote:

> Fran??ois Battail <fb at ...> writes:
> 
> I confirm the bug an a q6600 running Ubuntu 8.04 x86_64 with 4 GB of ram. Same
> settings, except that I need to use a large number of concurrent connections and
> requests:
> 
> ab -k -c 5000 -n 10000000 http://localhost:8000/
> 
> Same bug: stack overflow because of recursive calls. May be it is linked to the
> way ab works. Unable to reproduce this bug on my main computer because it's an
> AMD X2 (working in 32 bits) with a fileno of 1024, so may be not enough stress...
> 
> Very strange since there's only one worker, no more idea for the moment.

Try the attached patch.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/http/ngx_http_request.c
===================================================================
--- src/http/ngx_http_request.c	(revision 1318)
+++ src/http/ngx_http_request.c	(working copy)
@@ -2180,7 +2180,7 @@
     c->idle = 1;
 
     if (rev->ready) {
-        ngx_http_keepalive_handler(rev);
+        ngx_post_event(rev, &ngx_posted_events);
     }
 }
 


More information about the nginx mailing list