1
0

lowering default transmit window size

This commit is contained in:
EAimTY 2023-05-28 17:39:23 +09:00
parent 53d560a475
commit f21a0d43f8
4 changed files with 12 additions and 12 deletions

View File

@ -89,13 +89,13 @@ tuic-client -c PATH/TO/CONFIG
// Optional. Maximum number of bytes to transmit to a peer without acknowledgment
// Should be set to at least the expected connection latency multiplied by the maximum desired throughput
// Default: 16MiB * 2
"send_window": 33554432,
// Default: 8MiB * 2
"send_window": 16777216,
// Optional. Maximum number of bytes the peer may transmit without acknowledgement on any one stream before becoming blocked
// Should be set to at least the expected connection latency multiplied by the maximum desired throughput
// Default: 16MiB
"receive_window": 16777216,
// Default: 8MiB
"receive_window": 8388608,
// Optional. Interval between UDP packet fragment garbage collection
// Default: 3s

View File

@ -197,11 +197,11 @@ mod default {
}
pub fn send_window() -> u64 {
2u64.pow(24) * 2
8 * 1024 * 1024 * 2
}
pub fn receive_window() -> u32 {
2u32.pow(24)
8 * 1024 * 1024
}
pub fn gc_interval() -> Duration {

View File

@ -81,13 +81,13 @@ tuic-server -c PATH/TO/CONFIG
// Optional. Maximum number of bytes to transmit to a peer without acknowledgment
// Should be set to at least the expected connection latency multiplied by the maximum desired throughput
// Default: 16MiB * 2
"send_window": 33554432,
// Default: 8MiB * 2
"send_window": 16777216,
// Optional. Maximum number of bytes the peer may transmit without acknowledgement on any one stream before becoming blocked
// Should be set to at least the expected connection latency multiplied by the maximum desired throughput
// Default: 16MiB
"receive_window": 16777216,
// Default: 8MiB
"receive_window": 8388608,
// Optional. Interval between UDP packet fragment garbage collection
// Default: 3s

View File

@ -161,11 +161,11 @@ mod default {
}
pub fn send_window() -> u64 {
2u64.pow(24) * 2
8 * 1024 * 1024 * 2
}
pub fn receive_window() -> u32 {
2u32.pow(24)
8 * 1024 * 1024
}
pub fn gc_interval() -> Duration {