ngtcp2: deal with sub-millisecond timeout

Closes #8738
This commit is contained in:
Tatsuhiro Tsujikawa 2022-04-25 11:37:17 +02:00 committed by Daniel Stenberg
parent 4ec0549c39
commit ca94497a82
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1831,6 +1831,9 @@ static CURLcode ng_flush_egress(struct Curl_easy *data,
}
else {
timeout = expiry - ts;
if(timeout % NGTCP2_MILLISECONDS) {
timeout += NGTCP2_MILLISECONDS;
}
}
Curl_expire(data, timeout / NGTCP2_MILLISECONDS, EXPIRE_QUIC);
}