Skip to content

Commit

Permalink
Merge branch 'master' into kazuho/quic-on-streams
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Jan 28, 2025
2 parents 0a9e6e2 + 91542af commit 2d72c84
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ struct st_quicly_conn_t {
ptls_t *tls;
ptls_handshake_properties_t handshake_properties;
struct {
ptls_raw_extension_t ext[3];
ptls_raw_extension_t ext[2];
ptls_buffer_t buf;
} transport_params;
unsigned async_in_progress : 1;
Expand Down Expand Up @@ -2799,12 +2799,9 @@ quicly_error_t quicly_connect(quicly_conn_t **_conn, quicly_context_t *ctx, cons
NULL, NULL, conn->super.ctx->expand_client_hello ? conn->super.ctx->initial_egress_max_udp_payload_size : 0)) != 0)
goto Exit;
conn->crypto.transport_params.ext[0] =
(ptls_raw_extension_t){QUICLY_TLS_EXTENSION_TYPE_TRANSPORT_PARAMETERS_FINAL,
{conn->crypto.transport_params.buf.base, conn->crypto.transport_params.buf.off}};
conn->crypto.transport_params.ext[1] =
(ptls_raw_extension_t){QUICLY_TLS_EXTENSION_TYPE_TRANSPORT_PARAMETERS_DRAFT,
(ptls_raw_extension_t){get_transport_parameters_extension_id(conn->super.version),
{conn->crypto.transport_params.buf.base, conn->crypto.transport_params.buf.off}};
conn->crypto.transport_params.ext[2] = (ptls_raw_extension_t){UINT16_MAX};
conn->crypto.transport_params.ext[1] = (ptls_raw_extension_t){UINT16_MAX};
conn->crypto.handshake_properties.additional_extensions = conn->crypto.transport_params.ext;
conn->crypto.handshake_properties.collected_extensions = client_collected_extensions;

Expand Down

0 comments on commit 2d72c84

Please sign in to comment.