Skip to content

HTTP2 Duplex: Receiving non-success status code does not allow response body to be read #30249

Closed
dotnet/corefx
#39638

Description

@geoffkizer

When we receive a non-success status code (e.g. 403), we stop sending the request body. However, we also immediately send a RST_STREAM, which causes the server to stop sending the response body if it hasn't finished already. This means the client cannot reliably read the response body. (Note this works for HTTP/1.1, though we only do this when Expect: 100-continue is used; for HTTP2 we always do it.)

We should simply stop sending the request body and defer the RST_STREAM until the response body has been fully read.

Activity

  1. self-assigned this
    on Jul 15, 2019
  2. karelz commented on Aug 3, 2019

    @karelz
    Member

    Fixed in master (5.0) in PR dotnet/corefx#39638 and also in release/3.0 branch (3.0) in PR dotnet/corefx#39775.

  3. transferred this issue fromdotnet/corefxon Feb 1, 2020
  4. added this to the 3.0 milestone on Feb 1, 2020
  5. ghost locked as resolved and limited conversation to collaborators on Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions