diff options
author | Vladimir Homutov <vl@nginx.com> | 2021-11-09 21:17:05 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2021-11-09 21:17:05 +0300 |
commit | a3163fa4b29f6aa1f8ae341814451ec91a3f0ee5 (patch) | |
tree | 7c51089a11254a51a2fef8a69ae2da5b80a81303 /src | |
parent | 6f9f8bf96e8ebe04572333e15388e7bc0db79ede (diff) | |
download | nginx-a3163fa4b29f6aa1f8ae341814451ec91a3f0ee5.tar.gz nginx-a3163fa4b29f6aa1f8ae341814451ec91a3f0ee5.zip |
QUIC: fixed GSO packets count.
Thanks to Andrey Kolyshkin <a.kolyshkin@corp.vk.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/event/quic/ngx_event_quic_output.c | 6 |
1 files 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; |