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 server disconnect behaviour. #164

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Aug 18, 2020

Based on #159 but narrowing things down a bit.

Fixes an issue in HTTP/1.1 when the server does not include the Content-Length or set Transfer-Encoding: chunked but instead uses a server disconnect to signal the end of the response body.

If the server disconnects under HTTP/2 then raise an appropriate error.

@tomchristie tomchristie changed the title Import HTTP/2 server disconnected behaviour Improve HTTP/2 server disconnected behaviour Aug 18, 2020
@tomchristie
Copy link
Member Author

We've also still got some behaviour we can improve on this, around raising the error on multiple streams. (And a related issue about better handling connection-wide HTTP/2 error conditions.) But let's treat those as follow-ups.

@tomchristie tomchristie changed the title Improve HTTP/2 server disconnected behaviour Fix HTTP/1.1 disconnects & improve HTTP/2 server disconnected behaviour Aug 19, 2020
@tomchristie tomchristie changed the title Fix HTTP/1.1 disconnects & improve HTTP/2 server disconnected behaviour Fix server disconnect behaviour. Aug 19, 2020
@tomchristie tomchristie merged commit 55ea7b8 into master Aug 20, 2020
@tomchristie tomchristie deleted the improve-h2-server-disconnected branch August 20, 2020 09:29
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.

2 participants