Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngtcp2: replace removed define and stop using removed function #10474

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 2 additions & 10 deletions lib/vquic/curl_ngtcp2.c
Expand Up @@ -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 \
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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: {
Expand Down