Skip to content
Permalink
Browse files

ngtcp2: use ngtcp2_settings_default and specify initial_ts

  • Loading branch information...
tatsuhiro-t authored and bagder committed Aug 11, 2019
1 parent 42a0611 commit f49abd1090bd530e5f788e5226e7056e9a2ef453
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/vquic/ngtcp2.c
@@ -157,18 +157,16 @@ static int setup_initial_crypto_context(struct connectdata *conn)

static void quic_settings(ngtcp2_settings *s)
{
ngtcp2_settings_default(s);
s->log_printf = quic_printf;
s->initial_ts = 0;
s->initial_ts = timestamp();
s->max_stream_data_bidi_local = QUIC_MAX_STREAMS;
s->max_stream_data_bidi_remote = QUIC_MAX_STREAMS;
s->max_stream_data_uni = QUIC_MAX_STREAMS;
s->max_data = QUIC_MAX_DATA;
s->max_streams_bidi = 1;
s->max_streams_uni = 3;
s->idle_timeout = QUIC_IDLE_TIMEOUT;
s->max_packet_size = NGTCP2_MAX_PKT_SIZE;
s->ack_delay_exponent = NGTCP2_DEFAULT_ACK_DELAY_EXPONENT;
s->max_ack_delay = NGTCP2_DEFAULT_MAX_ACK_DELAY;
}

/* SSL extension functions */

0 comments on commit f49abd1

Please sign in to comment.
You can’t perform that action at this time.