Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 8846:cbbe901c199d quic
QUIC: removed Firefox workaround for trailing zeroes in datagrams.
This became unnecessary after discarding invalid packets since a6784cf32c13.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 09 Sep 2021 19:12:27 +0300 |
parents | a9f6540e61da |
children | b5296bd8631c |
comparison
equal
deleted
inserted
replaced
8845:4df9795fb77f | 8846:cbbe901c199d |
---|---|
728 */ | 728 */ |
729 | 729 |
730 /* b->pos is at header end, adjust by actual packet length */ | 730 /* b->pos is at header end, adjust by actual packet length */ |
731 b->pos = pkt.data + pkt.len; | 731 b->pos = pkt.data + pkt.len; |
732 | 732 |
733 /* firefox workaround: skip zero padding at the end of quic packet */ | |
734 while (b->pos < b->last && *(b->pos) == 0) { | |
735 b->pos++; | |
736 } | |
737 | |
738 p = b->pos; | 733 p = b->pos; |
739 } | 734 } |
740 | 735 |
741 return good ? NGX_OK : NGX_DECLINED; | 736 return good ? NGX_OK : NGX_DECLINED; |
742 } | 737 } |