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

Deadlock in the TLSEngine #1873

Closed
fcabestre opened this issue May 25, 2020 · 0 comments
Closed

Deadlock in the TLSEngine #1873

fcabestre opened this issue May 25, 2020 · 0 comments

Comments

@fcabestre
Copy link
Contributor

When multiple streams are concurrently reading/writing a TLSSocket, there is a reproducible deadlock in the TLSEngine. This is illustrated by the following scastie.

Let me quote a quick analysis from @mpilquist on the FS2 Gitter room:

Definitely a bug in TLSEngine -- it occurs when there's a read that blocks for data followed by a write and the write starts the TLS handshake. The read gets the first response data from the handshake and also tries to start handshaking separately, but gets blocked on the handshake semaphore.

@fcabestre fcabestre changed the title Deadlock in the TLSEngine Deadlock in the TLSEngine May 25, 2020
mpilquist added a commit that referenced this issue Jun 5, 2020
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

No branches or pull requests

1 participant