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

Rustls buffered handshake eof failed #98

Merged
merged 7 commits into from
Mar 19, 2022

Conversation

quininer
Copy link
Member

This fixes an issue (#96) where flush could be lost during handshake.

This does not check read pending , because rustls read always returns 0 before there is data to write, which would cause test to fail. And I believe it should always be beneficial to flush during the handshake phase.

@quininer quininer requested a review from djc March 16, 2022 17:52
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

LGTM.

@djc djc merged commit bcf4f8e into tokio-rs:master Mar 19, 2022
@quininer quininer deleted the rustls-buffered-handshake-eof-failed branch March 19, 2022 05:23
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