Mercurial > hg > nginx
changeset 3082:5e8bf3e983d2
fix request counter handling for perl handler, introduced in r3050
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Sep 2009 09:54:16 +0000 |
parents | 10bfdd8d5eb9 |
children | ffe8bfb38184 |
files | src/http/modules/perl/ngx_http_perl_module.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/perl/ngx_http_perl_module.c Fri Sep 04 09:53:09 2009 +0000 +++ b/src/http/modules/perl/ngx_http_perl_module.c Fri Sep 04 09:54:16 2009 +0000 @@ -179,6 +179,8 @@ return NGX_HTTP_NOT_FOUND; } + r->main->count++; + ngx_http_perl_handle_request(r); return NGX_DONE; @@ -232,6 +234,9 @@ } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "perl handler done: %i", rc); + if (rc == NGX_DONE) { return; } @@ -240,9 +245,6 @@ rc = NGX_OK; } - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "perl handler done: %i", rc); - if (ctx->redirect_uri.len) { uri = ctx->redirect_uri; args = ctx->redirect_args;