avoid recursive loop

This commit is contained in:
Igor Sysoev 2008-05-19 10:24:22 +00:00
parent f1e58930c8
commit 48242f4b08

View File

@ -2157,7 +2157,8 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
hc->pipeline = 1; hc->pipeline = 1;
c->log->action = "reading client pipelined request line"; 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; return;
} }
@ -2273,7 +2274,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r)
c->idle = 1; c->idle = 1;
if (rev->ready) { if (rev->ready) {
ngx_http_keepalive_handler(rev); ngx_post_event(rev, &ngx_posted_events);
} }
} }