Compile with the latest ngtcp2
This commit is contained in:
parent
f1ff2af47a
commit
35d8ef33ef
|
@ -352,7 +352,9 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
|
||||||
settings.log_printf = debug_log_printf;
|
settings.log_printf = debug_log_printf;
|
||||||
}
|
}
|
||||||
settings.initial_ts = timestamp(worker->loop);
|
settings.initial_ts = timestamp(worker->loop);
|
||||||
auto ¶ms = settings.transport_params;
|
|
||||||
|
ngtcp2_transport_params params;
|
||||||
|
ngtcp2_transport_params_default(¶ms);
|
||||||
auto max_stream_data =
|
auto max_stream_data =
|
||||||
std::min((1 << 26) - 1, (1 << config->window_bits) - 1);
|
std::min((1 << 26) - 1, (1 << config->window_bits) - 1);
|
||||||
params.initial_max_stream_data_bidi_local = max_stream_data;
|
params.initial_max_stream_data_bidi_local = max_stream_data;
|
||||||
|
@ -370,7 +372,7 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
|
||||||
|
|
||||||
rv = ngtcp2_conn_client_new(&quic.conn, &dcid, &scid, &path,
|
rv = ngtcp2_conn_client_new(&quic.conn, &dcid, &scid, &path,
|
||||||
NGTCP2_PROTO_VER_MIN, &callbacks, &settings,
|
NGTCP2_PROTO_VER_MIN, &callbacks, &settings,
|
||||||
nullptr, this);
|
¶ms, nullptr, this);
|
||||||
if (rv != 0) {
|
if (rv != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue