Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 8096:0f37b4ef3cd9 quic
QUIC: keep the entire packet size in pkt->len.
Previously pkt->len kept the length of the packet remainder starting from
pkt->raw->pos.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 25 Sep 2020 21:46:55 +0300 |
parents | 2727d402e5a5 |
children | a89a58c642ef |
comparison
equal
deleted
inserted
replaced
8095:2727d402e5a5 | 8096:0f37b4ef3cd9 |
---|---|
1674 * We also skip packets that don't match connection state | 1674 * We also skip packets that don't match connection state |
1675 * or cannot be parsed properly. | 1675 * or cannot be parsed properly. |
1676 */ | 1676 */ |
1677 | 1677 |
1678 /* b->pos is at header end, adjust by actual packet length */ | 1678 /* b->pos is at header end, adjust by actual packet length */ |
1679 b->pos += pkt.len; | 1679 b->pos = pkt.data + pkt.len; |
1680 p = ngx_quic_skip_zero_padding(b); | 1680 p = ngx_quic_skip_zero_padding(b); |
1681 } | 1681 } |
1682 | 1682 |
1683 return good ? NGX_OK : NGX_DECLINED; | 1683 return good ? NGX_OK : NGX_DECLINED; |
1684 } | 1684 } |