From a3163fa4b29f6aa1f8ae341814451ec91a3f0ee5 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 9 Nov 2021 21:17:05 +0300 Subject: [PATCH] QUIC: fixed GSO packets count. Thanks to Andrey Kolyshkin --- src/event/quic/ngx_event_quic_output.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c index add69b1a2..f121d2327 100644 --- a/src/event/quic/ngx_event_quic_output.c +++ b/src/event/quic/ngx_event_quic_output.c @@ -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;