aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-24 07:53:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-06-24 07:53:37 +0000
commitc83f683553cb76dcc9b7311495383edbacccf06d (patch)
tree3fecc630afb8e5c101973ab5530379eca3246725 /src/http/ngx_http_request.c
parente0207bb8eb230d4750c4f328af9afbb79051a026 (diff)
downloadnginx-c83f683553cb76dcc9b7311495383edbacccf06d.tar.gz
nginx-c83f683553cb76dcc9b7311495383edbacccf06d.zip
nginx-0.0.7-2004-06-24-11:53:37 import
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c5
1 files changed, 5 insertions, 0 deletions
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;