fix request counter handling for perl handler, introduced in r3050

This commit is contained in:
Igor Sysoev 2009-09-04 09:54:16 +00:00
parent 8f8f9c00d5
commit 0ce7f4ff37

View file

@ -179,6 +179,8 @@ ngx_http_perl_handler(ngx_http_request_t *r)
return NGX_HTTP_NOT_FOUND; return NGX_HTTP_NOT_FOUND;
} }
r->main->count++;
ngx_http_perl_handle_request(r); ngx_http_perl_handle_request(r);
return NGX_DONE; 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) { if (rc == NGX_DONE) {
return; return;
} }
@ -240,9 +245,6 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
rc = NGX_OK; rc = NGX_OK;
} }
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"perl handler done: %i", rc);
if (ctx->redirect_uri.len) { if (ctx->redirect_uri.len) {
uri = ctx->redirect_uri; uri = ctx->redirect_uri;
args = ctx->redirect_args; args = ctx->redirect_args;