]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: make curl 1ms faster
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Tue, 5 Apr 2022 14:47:18 +0000 (16:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Apr 2022 14:47:18 +0000 (16:47 +0200)
Pass 0 for an already expired timer.

Closes #8678

lib/vquic/ngtcp2.c

index 0b30854a7e12826a079d38e3005204ab4fe95170..5c865ba2b01472d749c3318a8dcc206330b08925 100644 (file)
@@ -1806,7 +1806,7 @@ static CURLcode ng_flush_egress(struct Curl_easy *data,
   expiry = ngtcp2_conn_get_expiry(qs->qconn);
   if(expiry != UINT64_MAX) {
     if(expiry <= ts) {
-      timeout = NGTCP2_MILLISECONDS;
+      timeout = 0;
     }
     else {
       timeout = expiry - ts;