summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_quic.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-09-25 21:47:28 +0300
committerVladimir Homutov <vl@nginx.com>2020-09-25 21:47:28 +0300
commitfe626bda8426fe7f0a9a9e4930eba30eb2b2f109 (patch)
tree3ea6263f0c08327d098f4764744756d1cc6cb435 /src/event/ngx_event_quic.c
parent80958b29a2ed69237b463f848951e63480339b07 (diff)
downloadnginx-fe626bda8426fe7f0a9a9e4930eba30eb2b2f109.tar.gz
nginx-fe626bda8426fe7f0a9a9e4930eba30eb2b2f109.tar.bz2
QUIC: simplified packet header parsing.
Now flags are processed in ngx_quic_input(), and raw->pos points to the first byte after the flags. Redundant checks from ngx_quic_parse_short_header() and ngx_quic_parse_long_header() are removed.
Diffstat (limited to 'src/event/ngx_event_quic.c')
-rw-r--r--src/event/ngx_event_quic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index f79ec408f..04fe56deb 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -1623,6 +1623,7 @@ ngx_quic_input(ngx_connection_t *c, ngx_buf_t *b)
pkt.len = b->last - p;
pkt.log = c->log;
pkt.flags = p[0];
+ pkt.raw->pos++;
if (c->quic->in_retry) {
rc = ngx_quic_retry_input(c, &pkt);