Skip to content

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