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

Fix TLS session access on JS #3257

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

armanbilge
Copy link
Member

We had a test, but it wasn't working properly for server-side TLS sockets. So I fixed that.

In the end fussing with 'session' events was more complicated and didn't seem to work for server sockets anyway. Even though the docs warn against it for TLS v1.3 getSession() seems to work fine 🤔

Note: getSession() works only for TLSv1.2 and below. For TLSv1.3, applications must use the 'session' event

https://nodejs.org/api/tls.html#tlssocketgetsession

Well, let me double-check that before we merge 😅

Another one h/t @etspaceman

@armanbilge
Copy link
Member Author

Well, let me double-check that before we merge 😅

I feel satisfied this is working correctly. Not the first time Node.js TLS docs have been wrong ...

@armanbilge armanbilge marked this pull request as ready for review July 11, 2023 16:03
@mpilquist mpilquist merged commit 230c96a into typelevel:main Jul 21, 2023
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.

3 participants