diff options
| author | Vladimir Homutov <vl@nginx.com> | 2021-11-29 11:49:09 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2021-11-29 11:49:09 +0300 |
| commit | b8aa869a6f4ee0fda4ab32d5c002fc10bd738079 (patch) | |
| tree | b1d85fc21b0aeed06588c4b40012aa1cb5908a57 /src/event/quic/ngx_event_quic_migration.c | |
| parent | e165526e43d60b9249690faccbb380be20e88af3 (diff) | |
| download | nginx-b8aa869a6f4ee0fda4ab32d5c002fc10bd738079.tar.gz nginx-b8aa869a6f4ee0fda4ab32d5c002fc10bd738079.tar.bz2 | |
QUIC: refactored multiple QUIC packets handling.
Single UDP datagram may contain multiple QUIC datagrams. In order to
facilitate handling of such cases, 'first' flag in the ngx_quic_header_t
structure is introduced.
Diffstat (limited to 'src/event/quic/ngx_event_quic_migration.c')
| -rw-r--r-- | src/event/quic/ngx_event_quic_migration.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c index bea51081d..4f7ab2c97 100644 --- a/src/event/quic/ngx_event_quic_migration.c +++ b/src/event/quic/ngx_event_quic_migration.c @@ -388,12 +388,7 @@ ngx_quic_update_paths(ngx_connection_t *c, ngx_quic_header_t *pkt) update: - if (pkt->raw->start == pkt->data) { - len = pkt->raw->last - pkt->raw->start; - - } else { - len = 0; - } + len = pkt->raw->last - pkt->raw->start; /* TODO: this may be too late in some cases; * for example, if error happens during decrypt(), we cannot |
