Hi, I wonder if it's a bug. It confused me. recv in ngx_http_discard_request_body return 0, but ignored(suppose to close conntection soon). So the connection will stay in keepalive timer untill timeout, while client already closed and server stay in CLOSE_WAIT. nginx version: nginx/1.17.6 built by gcc 4.4.6 20110731 (Red Hat 4.4.6-4) (GCC) built with OpenSSL 1.1.1c 28 May 2019 TLS SNIby ak638 - Nginx Mailing List - English