From: Vladimir Homutov Date: Tue, 9 Nov 2021 18:17:05 +0000 (+0300) Subject: QUIC: fixed GSO packets count. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=a3163fa4b29f6aa1f8ae341814451ec91a3f0ee5;p=nginx.git QUIC: fixed GSO packets count. Thanks to Andrey Kolyshkin --- 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;