comparison src/event/quic/ngx_event_quic_migration.c @ 8912:50d73bf20e73 quic

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.
author Vladimir Homutov <vl@nginx.com>
date Mon, 29 Nov 2021 11:49:09 +0300
parents a951e0809044
children 40445fc7c403
comparison
equal deleted inserted replaced
8911:b09f055daa4e 8912:50d73bf20e73
386 386
387 ngx_quic_connect(c, qsock, path, cid); 387 ngx_quic_connect(c, qsock, path, cid);
388 388
389 update: 389 update:
390 390
391 if (pkt->raw->start == pkt->data) { 391 len = pkt->raw->last - pkt->raw->start;
392 len = pkt->raw->last - pkt->raw->start;
393
394 } else {
395 len = 0;
396 }
397 392
398 /* TODO: this may be too late in some cases; 393 /* TODO: this may be too late in some cases;
399 * for example, if error happens during decrypt(), we cannot 394 * for example, if error happens during decrypt(), we cannot
400 * send CC, if error happens in 1st packet, due to amplification 395 * send CC, if error happens in 1st packet, due to amplification
401 * limit, because path->received = 0 396 * limit, because path->received = 0