ngtcp2: make curl 1ms faster

Pass 0 for an already expired timer.

Closes #8678
This commit is contained in:
Tatsuhiro Tsujikawa 2022-04-05 16:47:18 +02:00 committed by Daniel Stenberg
parent 1b1443a8ed
commit 913b80d5fd
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;