summaryrefslogtreecommitdiff
path: root/lib/vquic
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-02-11 00:06:13 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-02-11 09:49:13 +0100
commit03ce27ae2fcbed6dd999234bf70dc93f9c2afc07 (patch)
tree85fff174ee41febd57666c8bc78e30e72539df8c /lib/vquic
parent0900997250129366c9752e229882e91c29fef428 (diff)
downloadcurl-03ce27ae2fcbed6dd999234bf70dc93f9c2afc07.tar.gz
ngtcp2: replace removed define and stop using removed function
They were removed upstream. Reported-by: Karthikdasari0423 on github Fixes #10469 Closes #10474
Diffstat (limited to 'lib/vquic')
-rw-r--r--lib/vquic/curl_ngtcp2.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/vquic/curl_ngtcp2.c b/lib/vquic/curl_ngtcp2.c
index 32658c718..6d75c738f 100644
--- a/lib/vquic/curl_ngtcp2.c
+++ b/lib/vquic/curl_ngtcp2.c
@@ -90,6 +90,7 @@ struct h3out {
#define QUIC_MAX_STREAMS (256*1024)
#define QUIC_MAX_DATA (1*1024*1024)
#define QUIC_IDLE_TIMEOUT (60*NGTCP2_SECONDS)
+#define QUIC_HANDSHAKE_TIMEOUT (10*NGTCP2_SECONDS)
#ifdef USE_OPENSSL
#define QUIC_CIPHERS \
@@ -231,7 +232,7 @@ static void quic_settings(struct cf_ngtcp2_ctx *ctx,
(void)data;
s->initial_ts = timestamp();
- s->handshake_timeout = NGTCP2_DEFAULT_HANDSHAKE_TIMEOUT;
+ s->handshake_timeout = QUIC_HANDSHAKE_TIMEOUT;
s->max_window = 100 * stream_win_size;
s->max_stream_window = stream_win_size;
@@ -2087,15 +2088,6 @@ static CURLcode cf_ngtcp2_data_event(struct Curl_cfilter *cf,
struct HTTP *stream = data->req.p.http;
Curl_dyn_free(&stream->overflow);
free(stream->h3out);
-#ifdef DEBUGBUILD
- if(ctx->qconn) {
- ngtcp2_conn_stat stat;
- ngtcp2_conn_get_conn_stat(ctx->qconn, &stat);
- DEBUGF(LOG_CF(data, cf, "ngtcp2 conn stat: cwnd=%" PRIu64 ", "
- "max_tx_payload=%zu",
- stat.cwnd, stat.max_tx_udp_payload_size));
- }
-#endif
break;
}
case CF_CTRL_DATA_DONE_SEND: {