]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: fix QUIC_IDLE_TIMEOUT
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Tue, 5 Apr 2022 14:47:07 +0000 (16:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Apr 2022 14:47:07 +0000 (16:47 +0200)
QUIC_IDLE_TIMEOUT should be of type ngtcp2_duration which is
nanoseconds resolution.

Closes #8678

lib/vquic/ngtcp2.c

index d96061bb9c3f4208214934d9585ab1b289323a28..0b30854a7e12826a079d38e3005204ab4fe95170 100644 (file)
@@ -83,7 +83,7 @@ struct h3out {
 
 #define QUIC_MAX_STREAMS (256*1024)
 #define QUIC_MAX_DATA (1*1024*1024)
-#define QUIC_IDLE_TIMEOUT 60000 /* milliseconds */
+#define QUIC_IDLE_TIMEOUT (60*NGTCP2_SECONDS)
 
 #ifdef USE_OPENSSL
 #define QUIC_CIPHERS                                                          \