Compile with the latest ngtcp2
This commit is contained in:
parent
610add1f59
commit
78c2c33b9e
|
@ -383,12 +383,13 @@ 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);
|
||||||
settings.max_stream_data_bidi_local = (1 << config->window_bits) - 1;
|
auto ¶ms = settings.transport_params;
|
||||||
settings.max_stream_data_uni = (1 << config->window_bits) - 1;
|
params.initial_max_stream_data_bidi_local = (1 << config->window_bits) - 1;
|
||||||
settings.max_data = (1 << config->connection_window_bits) - 1;
|
params.initial_max_stream_data_uni = (1 << config->window_bits) - 1;
|
||||||
settings.max_streams_bidi = 0;
|
params.initial_max_data = (1 << config->connection_window_bits) - 1;
|
||||||
settings.max_streams_uni = 100;
|
params.initial_max_streams_bidi = 0;
|
||||||
settings.idle_timeout = 30 * NGTCP2_SECONDS;
|
params.initial_max_streams_uni = 100;
|
||||||
|
params.idle_timeout = 30 * NGTCP2_SECONDS;
|
||||||
|
|
||||||
auto path = ngtcp2_path{
|
auto path = ngtcp2_path{
|
||||||
{local_addrlen,
|
{local_addrlen,
|
||||||
|
@ -403,9 +404,6 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngtcp2_transport_params params;
|
|
||||||
ngtcp2_conn_get_local_transport_params(quic.conn, ¶ms);
|
|
||||||
|
|
||||||
std::array<uint8_t, 64> buf;
|
std::array<uint8_t, 64> buf;
|
||||||
|
|
||||||
auto nwrite = ngtcp2_encode_transport_params(
|
auto nwrite = ngtcp2_encode_transport_params(
|
||||||
|
|
Loading…
Reference in New Issue