Thanks Maxim to taking the time to respond. > This feature wasn't removed in 5e6142609e48, but rather it was > changed how things work: instead of doing a full scan over all > connections on each event loop iteration, nginx now does it only > once, and also makes sure no new idle connections are added after > the shutdown signal. > I don't fully understand what haby tored - Nginx Mailing List - English
Hi, I'm looking into the same issue; how to improve graceful shutdown when using keep-alive connections. It seems nginx at some point had support for doing graceful shutdown (if i read the code correctly): http://hg.nginx.org/nginx/rev/03f1133f24e8 But it was removed at a later stage: http://hg.nginx.org/nginx/rev/5e6142609e48 The feature was removed due to negative impact on CPU usaby tored - Nginx Mailing List - English