diff src/http/modules/perl/nginx.xs @ 3447:de70f912ad58

fix request counter for $r->sleep(), the bug was introduced in r3050
author Igor Sysoev <igor@sysoev.ru>
date Fri, 12 Feb 2010 09:32:02 +0000
parents dcb0d3658944
children 0eb46e3c5c02
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -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