diff src/http/ngx_http_request.c @ 367:ceec87d1c2b3

nginx-0.0.7-2004-06-24-11:53:37 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 24 Jun 2004 07:53:37 +0000
parents 7650aea1816f
children 15c84a40e87d
line wrap: on
line diff
--- 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_ev
         }
     }
 
+    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_h
         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_req
     ctx = log->data;
     ctx->url = NULL;
 
+    r->request_line.len = 0;
+
     ngx_destroy_pool(r->pool);
 
     return;