]> git.kaiwu.me - nginx.git/commit
Respecting maximum packet size.
authorVladimir Homutov <vl@nginx.com>
Mon, 20 Apr 2020 19:25:22 +0000 (22:25 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 20 Apr 2020 19:25:22 +0000 (22:25 +0300)
commitbaacacd845f8f9408e4515359021df23f7468352
tree0046856f7ec59f3ddf3f7a38884ac6f1ef0764e2
parent67aa3b91919096506b8504dc681264dd2f08fd0c
Respecting maximum packet size.

The header size macros for long and short packets were fixed to provide
correct values in bytes.

Currently the sending code limits frames so they don't exceed max_packet_size.
But it does not account the case when a single frame can exceed the limit.

As a result of this patch, big payload (CRYPTO and STREAM) will be split
into a number of smaller frames that fit into advertised max_packet_size
(which specifies final packet size, after encryption).
src/event/ngx_event_quic.c
src/event/ngx_event_quic.h