From 448bc47ee5e54998452ea615ac58098f91006a54 Mon Sep 17 00:00:00 2001 From: "robert.bruenig@gmail.com" Date: Sat, 4 May 2019 18:11:00 +0200 Subject: [PATCH] updating quicly --- client.c | 3 +-- extern/quicly | 2 +- server.c | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/client.c b/client.c index 1547ad1..5750ddb 100644 --- a/client.c +++ b/client.c @@ -122,14 +122,13 @@ int run_client(const char *host, int runtime_s, bool ttfb_only) printf("running client with host=%s and runtime=%is\n", host, runtime_s); quit_after_first_byte = ttfb_only; - client_ctx = quicly_default_context; + client_ctx = quicly_spec_context; client_ctx.tls = get_tlsctx(); client_ctx.stream_open = &stream_open; client_ctx.closed_by_peer = &closed_by_peer; client_ctx.transport_params.max_stream_data.uni = UINT32_MAX; client_ctx.transport_params.max_stream_data.bidi_local = UINT32_MAX; client_ctx.transport_params.max_stream_data.bidi_remote = UINT32_MAX; - client_ctx.transport_params.max_data *= 4; setup_session_cache(get_tlsctx()); quicly_amend_ptls_context(get_tlsctx()); diff --git a/extern/quicly b/extern/quicly index f333a2a..7fbb90e 160000 --- a/extern/quicly +++ b/extern/quicly @@ -1 +1 @@ -Subproject commit f333a2a81f909362affea415faa7ca9e733a043b +Subproject commit 7fbb90e53194de5dd15b6777274790814b7ec826 diff --git a/server.c b/server.c index da779db..17d316c 100644 --- a/server.c +++ b/server.c @@ -220,7 +220,7 @@ int run_server(const char *cert, const char *key) setup_session_cache(get_tlsctx()); quicly_amend_ptls_context(get_tlsctx()); - server_ctx = quicly_default_context; + server_ctx = quicly_spec_context; server_ctx.tls = get_tlsctx(); server_ctx.stream_open = &stream_open; server_ctx.closed_by_peer = &closed_by_peer; @@ -229,8 +229,7 @@ int run_server(const char *cert, const char *key) server_ctx.transport_params.max_stream_data.bidi_remote = UINT32_MAX; server_ctx.event_log.mask = - (UINT64_C(1) << QUICLY_EVENT_TYPE_CC_TLP) | - (UINT64_C(1) << QUICLY_EVENT_TYPE_CC_RTO) | + (UINT64_C(1) << QUICLY_EVENT_TYPE_PTO) | (UINT64_C(1) << QUICLY_EVENT_TYPE_CC_ACK_RECEIVED) | (UINT64_C(1) << QUICLY_EVENT_TYPE_CC_CONGESTION) ; server_ctx.event_log.cb = &event_logger;