From c83f683553cb76dcc9b7311495383edbacccf06d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 24 Jun 2004 07:53:37 +0000 Subject: nginx-0.0.7-2004-06-24-11:53:37 import --- src/http/ngx_http_request.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index e935afbdf..d1ed4f3a4 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -161,6 +161,7 @@ static void ngx_http_init_request(ngx_event_t *rev) } } + r->signature = NGX_HTTP_MODULE; r->http_state = NGX_HTTP_INITING_REQUEST_STATE; /* find the server configuration for the address:port */ @@ -1382,6 +1383,8 @@ static void ngx_http_set_keepalive(ngx_http_request_t *r) c->tcp_nopush = NGX_TCP_NOPUSH_UNSET; } + r->http_state = NGX_HTTP_KEEPALIVE_STATE; + if (rev->ready) { ngx_http_keepalive_handler(rev); } @@ -1688,6 +1691,8 @@ void ngx_http_close_request(ngx_http_request_t *r, int error) ctx = log->data; ctx->url = NULL; + r->request_line.len = 0; + ngx_destroy_pool(r->pool); return; -- cgit v1.2.3