Skip to content

Commit

Permalink
updating quicly
Browse files Browse the repository at this point in the history
  • Loading branch information
rbruenig committed May 4, 2019
1 parent 0be865b commit 448bc47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion extern/quicly
5 changes: 2 additions & 3 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 448bc47

Please sign in to comment.