summaryrefslogtreecommitdiff
path: root/lib/vquic
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2019-08-11 10:48:34 +0900
committerDaniel Stenberg <daniel@haxx.se>2019-08-11 16:47:21 +0200
commitf49abd1090bd530e5f788e5226e7056e9a2ef453 (patch)
treeb7ff66714615b75363eba400741d2cddb7e2e403 /lib/vquic
parent42a06118c8a720c024a84df8461dbfc0c080af53 (diff)
downloadcurl-f49abd1090bd530e5f788e5226e7056e9a2ef453.tar.gz
ngtcp2: use ngtcp2_settings_default and specify initial_ts
Diffstat (limited to 'lib/vquic')
-rw-r--r--lib/vquic/ngtcp2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index b950ad896..e5c624126 100644
--- a/lib/vquic/ngtcp2.c
+++ b/lib/vquic/ngtcp2.c
@@ -157,8 +157,9 @@ 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;
@@ -166,9 +167,6 @@ static void quic_settings(ngtcp2_settings *s)
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 */