changeset 6942:1c43ac026c1d

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 24 Mar 2017 16:26:12 +0300
parents 6e20a6479325
children 7f394e433f00
files src/http/ngx_http_request.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_request.c	Wed Mar 22 23:36:35 2017 +0300
+++ b/src/http/ngx_http_request.c	Fri Mar 24 16:26:12 2017 +0300
@@ -2904,6 +2904,7 @@
             }
 
             cl->buf = b;
+            cl->next = NULL;
 
             hc->busy = cl;
             hc->nbusy = 1;