aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_event.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-01-15 07:02:27 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-01-15 07:02:27 +0000
commitad22e01112003ec8600f3e1f6ef184fc18a69bc8 (patch)
tree98981830393636b259e91f935fb017ff41c4b94e /src/http/ngx_http_event.c
parente79c6ac7b271cab208cd3295a833e4d9c8b9460b (diff)
downloadnginx-ad22e01112003ec8600f3e1f6ef184fc18a69bc8.tar.gz
nginx-ad22e01112003ec8600f3e1f6ef184fc18a69bc8.zip
nginx-0.0.1-2003-01-15-10:02:27 import
Diffstat (limited to 'src/http/ngx_http_event.c')
-rw-r--r--src/http/ngx_http_event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c
index 1a8338b8c..948b3f726 100644
--- a/src/http/ngx_http_event.c
+++ b/src/http/ngx_http_event.c
@@ -143,6 +143,7 @@ static int ngx_http_init_request(ngx_event_t *ev)
ngx_http_request_t *r;
c = (ngx_connection_t *) ev->data;
+ c->sent = 0;
ngx_test_null(r, ngx_pcalloc(c->pool, sizeof(ngx_http_request_t)),
NGX_ERROR);
@@ -497,8 +498,6 @@ static int ngx_http_writer(ngx_event_t *ev)
c = (ngx_connection_t *) ev->data;
r = (ngx_http_request_t *) c->data;
- c->sent = 0;
-
rc = ngx_http_output_filter(r, NULL);
ngx_log_debug(ev->log, "output filter in writer: %d" _ rc);