From ca94497a82d46d8d2cc21e2b51f81ade79b058ea Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 25 Apr 2022 11:37:17 +0200 Subject: [PATCH] ngtcp2: deal with sub-millisecond timeout Closes #8738 --- lib/vquic/ngtcp2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c index 543c45c435..abce631337 100644 --- a/lib/vquic/ngtcp2.c +++ b/lib/vquic/ngtcp2.c @@ -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); } -- 2.47.3