diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-03-12 17:32:22 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-03-12 17:32:22 +0000 |
| commit | 90ace68b69606b885578686e19d499a50d5e80b7 (patch) | |
| tree | 1229bcd0f438fa87bd6f3c08535e4e80bc02ff4d /src/http/ngx_http_event.c | |
| parent | b738757f359a79b346bcc40895ed0a5ca697e8e2 (diff) | |
| download | nginx-90ace68b69606b885578686e19d499a50d5e80b7.tar.gz nginx-90ace68b69606b885578686e19d499a50d5e80b7.tar.bz2 | |
nginx-0.0.1-2003-03-12-20:32:22 import
Diffstat (limited to 'src/http/ngx_http_event.c')
| -rw-r--r-- | src/http/ngx_http_event.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index fa17f7248..efeacf83d 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -166,7 +166,7 @@ static int ngx_http_init_request(ngx_event_t *ev) r->header_in = c->buffer; ngx_test_null(r->pool, ngx_create_pool(ngx_http_request_pool_size, ev->log), - ngx_http_close_request(r)); + NGX_ERROR); ngx_test_null(r->ctx, ngx_pcalloc(r->pool, sizeof(void *) * ngx_http_max_module), @@ -935,8 +935,9 @@ static int ngx_http_keepalive_handler(ngx_event_t *ev) ngx_log_debug(ev->log, "http keepalive handler"); - if (ev->timedout) + if (ev->timedout) { return NGX_DONE; + } /* MSIE closes keepalive connection with RST flag so we ignore ECONNRESET here */ @@ -946,8 +947,9 @@ static int ngx_http_keepalive_handler(ngx_event_t *ev) n = ngx_event_recv(c, c->buffer->last, c->buffer->end - c->buffer->last); ev->ignore_econnreset = 0; - if (n == NGX_AGAIN || n == NGX_ERROR) + if (n == NGX_AGAIN || n == NGX_ERROR) { return n; + } ctx = (ngx_http_log_ctx_t *) ev->log->data; ev->log->handler = NULL; |
