Skip to content

Fix test regression after rustls improvements in complete_io() - #68

Merged
djc merged 2 commits into
mainfrom
handshake-alert
Apr 26, 2024
Merged

djc merged 2 commits into
mainfrom
handshake-alert

Conversation

@djc

@djc djc commented Apr 26, 2024

Copy link
Copy Markdown
Member

A weekly CI run noticed a change from io::Error::UnexpectedEof to InvalidData today in a test for tokio-rs/tls#77 (that should likely have triggered me to follow-up directly in rustls itself back in the day...), which was fixed in tokio-rs/tls#78. I also added a commit to remove the extra logic which now appears to be unnecessary.

It makes sense to me that InvalidData is probably a better error for this than UnexpectedEof.

Fixes #67.

djc added 2 commits April 26, 2024 09:56
rustls itself now generates an InvalidData error, which we
yield before we get to our own logic that generates UnexpectedEof.
@djc
djc requested review from cpu, ctz and quininer April 26, 2024 08:03

@quininer quininer left a comment

Copy link
Copy Markdown
Member

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 cfd1b09 into main Apr 26, 2024
@djc
djc deleted the handshake-alert branch April 26, 2024 08:55
@djc djc mentioned this pull request Apr 26, 2024
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.

Test failure in common::test_stream::stream_handshake_regression_issues_77

3 participants