forked from mirrors/gecko-dev
Bug 1868070 - Make sure we exit the loop when neqo returns a zero duration, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D195642
This commit is contained in:
parent
f424e10c33
commit
1fb5969d9f
1 changed files with 5 additions and 0 deletions
|
|
@ -376,6 +376,11 @@ pub extern "C" fn neqo_http3conn_process_output_and_send(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Output::Callback(to) => {
|
Output::Callback(to) => {
|
||||||
|
if to.is_zero() {
|
||||||
|
set_timer_func(context, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
let timeout = min(to, Duration::from_nanos(u64::MAX - 1));
|
let timeout = min(to, Duration::from_nanos(u64::MAX - 1));
|
||||||
accumulated_time += timeout;
|
accumulated_time += timeout;
|
||||||
if accumulated_time >= conn.max_accumlated_time {
|
if accumulated_time >= conn.max_accumlated_time {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue