aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_posix_init.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2025-04-04 17:39:05 +0400
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2025-04-15 19:01:36 +0400
commit2fb32ff24d431211b673ff9c854352ca0c74e27c (patch)
tree37571cb83b0abd44f5c08cf59ad22b47bda0a894 /src/os/unix/ngx_posix_init.c
parentf9a7e7cc11e71b2c62d4c5b9ac4feb7e92913c64 (diff)
downloadnginx-2fb32ff24d431211b673ff9c854352ca0c74e27c.tar.gz
nginx-2fb32ff24d431211b673ff9c854352ca0c74e27c.zip
QUIC: optimized connection frame threshold.
Previosly the threshold was hardcoded at 10000. This value is too low for high BDP networks. For example, if all frames are STREAM frames, and MTU is 1500, the upper limit for congestion window would be roughly 15M (10000 * 1500). With 100ms RTT it's just a 1.2Gbps network (15M * 10 * 8). In reality, the limit is even lower because of other frame types. Also, the number of frames that could be used simultaneously depends on the total amount of data buffered in all server streams, and client flow control. The change sets frame threshold based on max concurrent streams and stream buffer size, the product of which is the maximum number of in-flight stream data in all server streams at any moment. The value is divided by 2000 to account for a typical MTU 1500 and the fact that not all frames are STREAM frames.
Diffstat (limited to 'src/os/unix/ngx_posix_init.c')
0 files changed, 0 insertions, 0 deletions