lowering default transmit window size
This commit is contained in:
parent
53d560a475
commit
f21a0d43f8
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user