diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-05-19 14:24:22 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-05-19 14:24:22 +0400 |
commit | 48242f4b087fd65d6087b4a2a8bef479fe132322 (patch) | |
tree | b2c9f35526ab03fbe2c3a2b18f1a616e1f0561ab | |
parent | f1e58930c82567620bb7ff83be194c292f957f96 (diff) |
avoid recursive loop
-rw-r--r-- | src/http/ngx_http_request.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 0535fc0ef..5258ad91f 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2157,7 +2157,8 @@ ngx_http_set_keepalive(ngx_http_request_t *r) hc->pipeline = 1; c->log->action = "reading client pipelined request line"; - ngx_http_init_request(rev); + rev->handler = ngx_http_init_request; + ngx_post_event(rev, &ngx_posted_events); return; } @@ -2273,7 +2274,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r) c->idle = 1; if (rev->ready) { - ngx_http_keepalive_handler(rev); + ngx_post_event(rev, &ngx_posted_events); } } |