diff src/http/ngx_http_write_filter_module.c @ 9008:ce6d9cf0f567 quic

Merged with the default branch.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 14 Feb 2022 10:14:07 +0300
parents 61d0fa67b55e 32b0ba4855a6
children
line wrap: on
line diff
--- a/src/http/ngx_http_write_filter_module.c
+++ b/src/http/ngx_http_write_filter_module.c
@@ -227,7 +227,8 @@ ngx_http_write_filter(ngx_http_request_t
 
     if (size == 0
         && !(c->buffered & NGX_LOWLEVEL_BUFFERED)
-        && !(last && c->need_last_buf))
+        && !(last && c->need_last_buf)
+        && !(flush && c->need_flush_buf))
     {
         if (last || flush || sync) {
             for (cl = r->out; cl; /* void */) {