Skip to content

QUIC TLS consolidation and some small fixes#12678

Closed
icing wants to merge 7 commits intocurl:masterfrom
icing:quic-tls-ctx
Closed

QUIC TLS consolidation and some small fixes#12678
icing wants to merge 7 commits intocurl:masterfrom
icing:quic-tls-ctx

Conversation

@icing
Copy link
Copy Markdown
Contributor

@icing icing commented Jan 10, 2024

Refactor ngtcp2 and quiche TLS setup code into a common source file:

  • add vquic/vquic-tls.[ch] for setting up TLS contexts for OpenSSL (and variants), GnuTLS and wolfSSL
  • change curl_ngtcp2.c to use this
  • change curl_quiche.c to use this

Fix QUIC connect time reporting in curl property time_connect to count the time until the first byte from the server is seen:

  • add test_01_06 to check that this works for all HTTP versions
  • fix reporting in ngtcp2 and quiche

In cf-socket.c remember if opened socket is connected or not. Also, discard extracting the peer address from the socket again, since this has already been stored when it was opened.

icing added 5 commits January 10, 2024 15:01
- separate ngtcp2 specific parts out
- provide callback during init to allow ngtcp2
  to apply its defaults
- in QUIC we use the time of the first byte received from
  the server as `time_connect`.
- add test_01_06 to check that for all http versions
- add recording of that to the generic vquic packet io
- fix implementation in ngtcp2 and quiche to report that
  properly
@github-actions github-actions bot added the tests label Jan 10, 2024
@icing icing added HTTP/3 h3 or quic related quiche Cloudflare's QUIC and HTTP/3 library tidy-up labels Jan 10, 2024
@icing icing requested a review from bagder January 11, 2024 09:04
Comment thread lib/cf-socket.c
@bagder bagder closed this in 5d044ad Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HTTP/3 h3 or quic related quiche Cloudflare's QUIC and HTTP/3 library tests tidy-up

Development

Successfully merging this pull request may close these issues.

2 participants