]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: deal with sub-millisecond timeout
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Mon, 25 Apr 2022 09:37:17 +0000 (11:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Apr 2022 09:37:18 +0000 (11:37 +0200)
Closes #8738

lib/vquic/ngtcp2.c

index 543c45c435aa0d009a3b702eb31ceefc21b1e196..abce6313375c14e28e6fc385b936c2aea05f57f9 100644 (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);
   }