Skip to content

HTTP/2 stress server intermitently fails in duplex scenarios #42200

Closed

Description

@ManickaP

When sending custom content in H/2 and using simple echo server. Then client disposes the response which might send RESET before the last DATA frame with END_STREAM flag leading to a server-side exception:

System.IO.IOException: The client reset the request stream.
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.ReadAsyncInternal(Memory`1 destination, CancellationToken cancellationToken)

The root of the issue resides in sending END_STREAM completely asynchronously.

  • In case when our own predefined contents are used, this frame is send asynchronously and might be sent after SendAsync has finished.
  • In case custom content is used, the end of its SerializeToStreamAsync is not a strong indicator that the END_STREAM has been sent, it still happens completely asynchronously.

Relates to #1511

Activity

  1. added this to the 6.0.0 milestone on Sep 14, 2020
  2. added
    untriaged
    on Sep 14, 2020
  3. removed
    untriaged
    on Sep 14, 2020
  4. added
    tenet-reliability
    on May 6, 2021
  5. self-assigned this
    on Jun 21, 2021
  6. ghost added
    in-pr
    on Jun 22, 2021
  7. ghost removed
    in-pr
    on Jun 22, 2021
  8. ghost added
    in-pr
    on Jun 22, 2021
  9. added a commit that references this issue on Jun 29, 2021
    5d29560
  10. ghost removed
    in-pr
    on Jun 29, 2021
  11. ghost locked as resolved and limited conversation to collaborators on Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Httpbugtenet-reliability

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions