Bug 1866596 - Use shorter timeout in HTTP/3 server, r=necko-reviewers,valentin

The current max timeout value used in h3 server is 1s, which is too long and causes the server stalls.
To fix the intermittent failrues, we should use a shorter timeout.

Differential Revision: https://phabricator.services.mozilla.com/D194773
This commit is contained in:
Kershaw Chang 2023-11-28 11:56:48 +00:00
Родитель 3a2b678746
Коммит a369fa7a4e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1029,7 +1029,7 @@ fn process(
qinfo!("Setting timeout of {:?} for {}", new_timeout, server);
if new_timeout > Duration::from_secs(1) {
new_timeout = Duration::from_secs(1);
new_timeout = Duration::from_millis(500);
}
*svr_timeout = Some(timer.set_timeout(new_timeout, inx));
false