diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-12-06 16:32:33 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-06 16:32:33 +0000 |
| commit | ef259d140f378be8d7936d04038354a93cccb461 (patch) | |
| tree | 731e20f9427c961a2283bfd1c03f574fd7dffcf1 /src/http/ngx_http_event.c | |
| parent | 6ed07e4f0640e1f1c9717fdaa952edf26faa86e0 (diff) | |
| download | nginx-ef259d140f378be8d7936d04038354a93cccb461.tar.gz nginx-ef259d140f378be8d7936d04038354a93cccb461.tar.bz2 | |
nginx-0.0.1-2002-12-06-19:32:33 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_event.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index 8a7cfa626..30d1ac5b4 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -323,7 +323,7 @@ static int ngx_http_process_request_line(ngx_http_request_t *r) } if (r->header_in->last.mem >= r->header_in->end) { - rc == NGX_HTTP_PARSE_TOO_LONG_URI; + rc = NGX_HTTP_PARSE_TOO_LONG_URI; } else if (rc == NGX_AGAIN) { return NGX_AGAIN; @@ -495,10 +495,11 @@ static int ngx_http_event_handler(ngx_http_request_t *r) rc = ngx_http_handler(r); + /* handler is still busy */ if (rc == NGX_WAITING) return rc; - /* transfer not completed */ + /* handler has done its work but transfer is not completed */ if (rc == NGX_AGAIN) { #if (HAVE_CLEAR_EVENT) if (ngx_add_event(r->connection->write, NGX_WRITE_EVENT, @@ -567,7 +568,7 @@ static int ngx_http_handler(ngx_http_request_t *r) r->connection->read->event_handler = ngx_http_block_read; /* STUB: should find handler */ -#if 1 +#if 0 r->filter = NGX_HTTP_FILTER_NEED_IN_MEMORY; #endif rc = ngx_http_set_default_handler(r); |
