From: Maxim Dounin Date: Fri, 24 Mar 2017 13:26:12 +0000 (+0300) Subject: Fixed CPU hog while freeing hc->busy after e662cbf1b932 (1.11.11). X-Git-Tag: release-1.11.12~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=77bac4d57cb60a1a0ff09eef3ee3936d007906d9;p=nginx.git Fixed CPU hog while freeing hc->busy after e662cbf1b932 (1.11.11). Reported by Richard Stanway, http://mailman.nginx.org/pipermail/nginx/2017-March/053296.html. --- diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 1788bf37e..dd5491021 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2904,6 +2904,7 @@ ngx_http_set_keepalive(ngx_http_request_t *r) } cl->buf = b; + cl->next = NULL; hc->busy = cl; hc->nbusy = 1;