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 #1873 - deadlock in TLSEngine #1877

Merged
merged 6 commits into from
Jun 5, 2020
Merged

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented May 26, 2020

The key part of the fix is the guard in TLSEngine.read that checks if a session is active and if not, handshakes before reading. I think a similar deadlock can still occur if a mid-session renegotiation is requested while an application level read is pending. Though TLS1.3 has dropped support for renegotiation.

Copy link
Member

@gvolpe gvolpe left a comment

Choose a reason for hiding this comment

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

I'm not really familiar with this codebase so you might want to wait for someone with more knowledge to review it but what I've seen looks good to me and I'm happy to see some tests! 😄

io/src/main/scala/fs2/io/tls/TLSEngine.scala Outdated Show resolved Hide resolved
@mpilquist mpilquist merged commit 099a3a1 into typelevel:master Jun 5, 2020
@mpilquist mpilquist added this to the 2.4.0 milestone Jun 8, 2020
@mpilquist mpilquist deleted the bugfix/1873 branch February 18, 2024 13:33
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.

2 participants