Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to relay servers should resume TLS sessions on re-connect #3083

Open
flub opened this issue Dec 31, 2024 · 0 comments
Open

Connection to relay servers should resume TLS sessions on re-connect #3083

flub opened this issue Dec 31, 2024 · 0 comments
Labels
c-iroh feat New feature or request

Comments

@flub
Copy link
Contributor

flub commented Dec 31, 2024

The relay client in the MagicSock sometimes wants to reconnect to be sure the connection is good. When doing so however it does not use the RLS session resumption, here the relevant rustls logs:

rustls::client::hs: 83: No cached session for IpAddress(V4(Ipv4Addr([127, 0, 0, 1])))
rustls::client::hs: 141: Not resuming any session
rustls::client::hs: 532: Sending ClientHello Message
...

This despite the server issuing tickets after the connection is established:

rustls::server::tls13: 1342: sending new ticket HandshakeMessagePayload 

It would be good if we could re-use this ticket and setup the subsequent connections faster.

@flub flub added feat New feature or request c-iroh labels Dec 31, 2024
@flub flub added this to iroh Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-iroh feat New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant