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
closes https://github.com/hyperium/hyper/issues/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 anErr
.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