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

feat: not returning UnexpectedEof when client drop without close_notify #743

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

dswij
Copy link
Member

@dswij dswij commented Jan 19, 2024

closes hyperium/hyper#3427

This PR makes it so that if we encountered UnexpectedEof as a server, and when there is nothing else to send (i.e. we sent what the client wanted), Connection::poll will not return an Err.

Note that this does not change the client behaviour when the server closed the connection abruptly.


Something to consider is whether we should handle this in hyper instead. But I don't see a good reason why we shouldn't put it in h2

@dswij dswij changed the title Hyper 3427 feat: not returning UnexpectedEof when client drop without close_notify Jan 19, 2024
@seanmonstar seanmonstar merged commit 4ce5955 into hyperium:master Jan 19, 2024
7 checks passed
@cablehead
Copy link

🙌🏻 💚

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.

UnexpectedEof Error on HTTP/2 Requests with Rustls
4 participants