diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-09-04 09:54:16 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-04 09:54:16 +0000 |
commit | 7d71c80b16058f79a6c269dc07c39f8a5ec06134 (patch) | |
tree | a669281bb9a85639ffc12cab67778c6f367967d3 /src | |
parent | f0e12845a5a44bf926162eae2e0cdb22ef450547 (diff) | |
download | nginx-7d71c80b16058f79a6c269dc07c39f8a5ec06134.tar.gz nginx-7d71c80b16058f79a6c269dc07c39f8a5ec06134.zip |
fix request counter handling for perl handler, introduced in r3050
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/perl/ngx_http_perl_module.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c index c4f52a58f..34ecc9a33 100644 --- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -179,6 +179,8 @@ ngx_http_perl_handler(ngx_http_request_t *r) return NGX_HTTP_NOT_FOUND; } + r->main->count++; + ngx_http_perl_handle_request(r); return NGX_DONE; @@ -232,6 +234,9 @@ ngx_http_perl_handle_request(ngx_http_request_t *r) } + 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 @@ ngx_http_perl_handle_request(ngx_http_request_t *r) 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; |