Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 3880:e3cb8e27e413
reuse keepalive connections if there are no free worker connections
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 04 Apr 2011 12:26:53 +0000 |
parents | de59ad6bf557 |
children | 6b608bf9f3ae |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Mon Apr 04 10:43:21 2011 +0000 +++ b/src/http/ngx_http_request.c Mon Apr 04 12:26:53 2011 +0000 @@ -2594,6 +2594,7 @@ #endif c->idle = 1; + ngx_reusable_connection(c, 1); if (rev->ready) { ngx_post_event(rev, &ngx_posted_events); @@ -2703,6 +2704,7 @@ c->log->action = "reading client request line"; c->idle = 0; + ngx_reusable_connection(c, 0); ngx_http_init_request(rev); }