Mercurial > hg > nginx
diff src/http/ngx_http_event.c @ 23:f540a63026c9
nginx-0.0.1-2002-12-06-19:32:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 06 Dec 2002 16:32:33 +0000 |
parents | aa3b53e74728 |
children | 77c7629a2627 |
line wrap: on
line diff
--- 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 } 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_ht 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_req 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);