diff options
author | Mike Yu <yumike@google.com> | 2021-11-11 15:57:28 +0800 |
---|---|---|
committer | Mike Yu <yumike@google.com> | 2021-11-11 11:28:40 +0000 |
commit | 25aca1eb2338c0ccf94ad074058cee740100fb87 (patch) | |
tree | 6f17ccb74bb2ba16b4ea0af6eeb20a5e4eb982aa /doh | |
parent | f42426ec380f66ccdf28e463c5386c3b611a6b94 (diff) | |
download | DnsResolver-25aca1eb2338c0ccf94ad074058cee740100fb87.tar.gz |
Shorten the value of max_idle_timeout
Set the value to 55 seconds by default before it is tunable.
Bug: 205922706
Test: cd packages/modules/DnsResolver && atest
Change-Id: I95f47015ff22044acb27df6f87e452c14d129658
Diffstat (limited to 'doh')
-rw-r--r-- | doh/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doh/config.rs b/doh/config.rs index 04d07c50..29cf61ce 100644 --- a/doh/config.rs +++ b/doh/config.rs @@ -41,7 +41,7 @@ const MAX_CONCURRENT_STREAM_SIZE: u64 = 100; /// Maximum datagram size we will accept. pub const MAX_DATAGRAM_SIZE: usize = 1350; /// How long with no packets before we assume a connection is dead, in milliseconds. -pub const QUICHE_IDLE_TIMEOUT_MS: u64 = 180000; +pub const QUICHE_IDLE_TIMEOUT_MS: u64 = 55000; impl Config { fn from_weak(weak: &WeakConfig) -> Option<Self> { |