summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_event.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_event.c7
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);