]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed GSO packets count.
authorVladimir Homutov <vl@nginx.com>
Tue, 9 Nov 2021 18:17:05 +0000 (21:17 +0300)
committerVladimir Homutov <vl@nginx.com>
Tue, 9 Nov 2021 18:17:05 +0000 (21:17 +0300)
Thanks to Andrey Kolyshkin <a.kolyshkin@corp.vk.com>

src/event/quic/ngx_event_quic_output.c

index add69b1a21e7b2c7922d4aeb27d70d00de9adf11..f121d2327a9925600e1fd0d203ec7e3b2bfa2503 100644 (file)
@@ -378,8 +378,10 @@ ngx_quic_create_segments(ngx_connection_t *c, ngx_quic_socket_t *qsock)
                 return NGX_ERROR;
             }
 
-            p += n;
-            nseg++;
+            if (n) {
+                p += n;
+                nseg++;
+            }
 
         } else {
             n = 0;