1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-18 07:25:14 -05:00

quiche: use the proper HTTP/3 ALPN

This commit is contained in:
Daniel Stenberg 2019-08-02 13:22:26 +02:00
parent fc5b61baf0
commit decefd5778
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -70,7 +70,11 @@ CURLcode Curl_quic_connect(struct connectdata *conn, curl_socket_t sockfd,
quiche_config_set_initial_max_stream_data_uni(qs->cfg, QUIC_MAX_DATA); quiche_config_set_initial_max_stream_data_uni(qs->cfg, QUIC_MAX_DATA);
quiche_config_set_initial_max_streams_bidi(qs->cfg, QUIC_MAX_STREAMS); quiche_config_set_initial_max_streams_bidi(qs->cfg, QUIC_MAX_STREAMS);
quiche_config_set_initial_max_streams_uni(qs->cfg, QUIC_MAX_STREAMS); quiche_config_set_initial_max_streams_uni(qs->cfg, QUIC_MAX_STREAMS);
quiche_config_set_application_protos(qs->cfg, (uint8_t *) "\x05hq-20", 6); quiche_config_set_application_protos(qs->cfg,
(uint8_t *)
QUICHE_H3_APPLICATION_PROTOCOL,
sizeof(QUICHE_H3_APPLICATION_PROTOCOL)
- 1);
result = Curl_rand(conn->data, qs->scid, sizeof(qs->scid)); result = Curl_rand(conn->data, qs->scid, sizeof(qs->scid));
if(result) if(result)