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: check for ErrorKind::WouldBlock in MidHandshake::SendAlert poll #47

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

jbr
Copy link
Contributor

@jbr jbr commented Mar 5, 2024

Identified by comparing the implementation of rustls/futures-rustls#9 to #44. Previous to this PR, we do not necessarily poll the alert.write to completion

Copy link
Member

@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.

Good call!

@jbr
Copy link
Contributor Author

jbr commented Mar 5, 2024

It's worth noting that the LazyConfigAcceptor alert.write has the same concern, but that one is at least annotated as best effort. I think we'd want to throw an Option<AcceptedAlert> on the LazyConfigAcceptor if we wanted to correctly poll it to completion. I opened a distinct PR for that (#48), since it's slightly more invasive and could be reviewed independently from this PR

@quininer quininer merged commit 4a4a448 into rustls:main Mar 6, 2024
6 checks passed
@quininer
Copy link
Member

quininer commented Mar 6, 2024

Thank you!

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