-
Notifications
You must be signed in to change notification settings - Fork 261
feat(iroh): Allow connecting with "fallback" ALPNs #3282
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
Conversation
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3282/docs/iroh/ Last updated: 2025-04-30T08:43:20Z |
iroh/src/endpoint.rs
Outdated
@@ -1279,6 +1281,28 @@ impl ConnectOptions { | |||
self.transport_config = Some(transport_config); | |||
self | |||
} | |||
|
|||
/// Sets more [ALPN] identifiers that should be signaled as supported on connection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Sets more [ALPN] identifiers that should be signaled as supported on connection. | |
/// Sets multiple [ALPN] identifiers to negotiate with the server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like your suggestion, but it also made me dislike the current wording.
I have some ideas for something better ✌️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed something that I think is an improvement.
Description
Allows connecting with multiple ALPNs so you can actually take advantage of ALPN also on the connecting side to support connections with older accept sides.
Notes & open questions
This only implements this via the
ConnectOptions
, which I think is fair? I generally like the pattern ofconnect
->connect_with_opts
, and I don't think this is worth changingconnect
for.Closes #2949
Change checklist