Skip to content

Fix server disconnect behaviour. - #164

Merged
lovelydinosaur merged 1 commit into
masterfrom
improve-h2-server-disconnected
Aug 20, 2020
Merged

Fix server disconnect behaviour.#164
lovelydinosaur merged 1 commit into
masterfrom
improve-h2-server-disconnected

Conversation

@lovelydinosaur

@lovelydinosaurlovelydinosaur commented Aug 18, 2020

Copy link
Copy Markdown
Contributor

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.

@lovelydinosaurlovelydinosaur changed the title Import HTTP/2 server disconnected behaviourImprove HTTP/2 server disconnected behaviourAug 18, 2020
@lovelydinosaur

Copy link
Copy Markdown
ContributorAuthor

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.

@lovelydinosaurlovelydinosaur changed the title Improve HTTP/2 server disconnected behaviourFix HTTP/1.1 disconnects & improve HTTP/2 server disconnected behaviourAug 19, 2020
@lovelydinosaurlovelydinosaur changed the title Fix HTTP/1.1 disconnects & improve HTTP/2 server disconnected behaviourFix server disconnect behaviour.Aug 19, 2020
@lovelydinosaurlovelydinosaur mentioned this pull request Aug 19, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@lovelydinosaur@florimondmanca