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: finish TLS handshake before shutting down #14547

Merged
merged 2 commits into from
May 10, 2022
Merged

fix: finish TLS handshake before shutting down #14547

merged 2 commits into from
May 10, 2022

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented May 9, 2022

This commit ensures that the TLS handshake completes before
attempting to close the connection.

Fixes: #14494

This fixes the bug in the linked issue, but creating a reproducible unit test has been... frustrating.

cjihrig added 2 commits May 9, 2022 13:17
This commit ensures that the TLS handshake completes before
attempting to close the connection.
@cjihrig cjihrig requested a review from kt3k as a code owner May 9, 2022 17:53
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

Unfortunate that there is no test, but let's land anyway. Many folks seem to be running into this panic.

@cjihrig cjihrig merged commit 649e5ce into denoland:main May 10, 2022
@cjihrig cjihrig deleted the tls-ready branch May 10, 2022 12:27
@ry ry mentioned this pull request May 10, 2022
piscisaureus pushed a commit that referenced this pull request May 12, 2022
This commit ensures that the TLS handshake completes before
attempting to close the connection.
@littledivy littledivy mentioned this pull request Jun 14, 2022
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.

thread 'main' panicked at 'assertion failed: self.wr_state >= State::TlsClosed', ext\net\ops_tls.rs:426:5
3 participants