diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2025-01-03 11:17:07 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2025-04-15 19:01:36 +0400 |
| commit | 53e7e9eb542fb1d3d885bbca03ed1d704aa08f31 (patch) | |
| tree | fd47e529f1b60f1e7ccdc3cc4c9c101f4a67a668 /src/event/quic/ngx_event_quic_migration.c | |
| parent | 3a97111adfb6e538ddef1828bbf04a35a8915c1f (diff) | |
| download | nginx-53e7e9eb542fb1d3d885bbca03ed1d704aa08f31.tar.gz nginx-53e7e9eb542fb1d3d885bbca03ed1d704aa08f31.tar.bz2 | |
QUIC: use path MTU in congestion window computations.
As per RFC 9002, Section B.2, max_datagram_size used in congestion window
computations should be based on path MTU.
Diffstat (limited to '')
| -rw-r--r-- | src/event/quic/ngx_event_quic_migration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c index 2d1467e14..ac22b1327 100644 --- a/src/event/quic/ngx_event_quic_migration.c +++ b/src/event/quic/ngx_event_quic_migration.c @@ -182,8 +182,8 @@ valid: ngx_memzero(&qc->congestion, sizeof(ngx_quic_congestion_t)); - qc->congestion.window = ngx_min(10 * qc->tp.max_udp_payload_size, - ngx_max(2 * qc->tp.max_udp_payload_size, + qc->congestion.window = ngx_min(10 * NGX_QUIC_MIN_INITIAL_SIZE, + ngx_max(2 * NGX_QUIC_MIN_INITIAL_SIZE, 14720)); qc->congestion.ssthresh = (size_t) -1; qc->congestion.recovery_start = ngx_current_msec; |
