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

feat(unstable): ALPN config in listenTls #10065

Merged
merged 4 commits into from
Apr 10, 2021

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Apr 8, 2021

This commit adds the ability for users to configure ALPN protocols when
calling Deno.listenTls.

Closes #6334.

@lucacasonato
Copy link
Member Author

lucacasonato commented Apr 8, 2021

I am not yet sure how we could test this. It won't be possible to do via unit tests because Deno.connectTls does not expose ALPN protocols. This will likely have to be a rust integration test using a native rustls client, which is relatively unfortunate. Integration tests have been added.

This commit adds the ability for users to configure ALPN protocols when
calling `Deno.listenTls`.
@lucacasonato lucacasonato changed the title feat(unstable): ALPN config in startTls/listenTls feat(unstable): ALPN config in listenTls Apr 9, 2021
@lucacasonato lucacasonato requested a review from ry April 9, 2021 13:32
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests. LGTM

@lucacasonato lucacasonato merged commit 8d55d8b into denoland:main Apr 10, 2021
@lucacasonato lucacasonato deleted the listen_alpn branch April 10, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TLS ALPN support
2 participants