Mercurial > hg > nginx-quic
changeset 2014:4151c33e4dfa
avoid recursive loop
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 19 May 2008 10:24:22 +0000 |
parents | 4c685f02a5a0 |
children | 0a189588830b |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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_ 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_ c->idle = 1; if (rev->ready) { - ngx_http_keepalive_handler(rev); + ngx_post_event(rev, &ngx_posted_events); } }