]> git.kaiwu.me - nginx.git/commitdiff
fix request counter for $r->sleep(), the bug was introduced in r3050
authorIgor Sysoev <igor@sysoev.ru>
Fri, 12 Feb 2010 09:32:02 +0000 (09:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 12 Feb 2010 09:32:02 +0000 (09:32 +0000)
src/http/modules/perl/nginx.xs

index 0c2c9b61742bc7355414377d4d412f970b69b796..357b1b9ae50c7bca315d293654f9737465eaaf0c 100644 (file)
@@ -944,6 +944,7 @@ sleep(r, sleep, next)
     ngx_add_timer(r->connection->write, sleep);
 
     r->write_event_handler = ngx_http_perl_sleep_handler;
+    r->main->count++;
 
 
 void