Skip to content

[HTTP/3] Loopback server should handle graceful shutdown properly #55025

Closed

Description

@geoffkizer

Currently, the HTTP3 loopback server used in tests is sending a GOAWAY frame but never closing the connection. This seems to lead to occasional races with the client in tests that issue multiple requests with the server closing the connection between requests. Some cookie tests are an example of this.

To function correctly per the RFC and to prevent these races, the HTTP3 loopback server needs to do the following:

(1) Send GOAWAY (it's doing this already)
(2) Accept any incoming streams and abort them with the H3_REQUEST_REJECTED
(3) When the client closes the connection, the AcceptStream operation from (2) will return null, indicating the connection has been closed. At this point the server can close its connection.

See https://quicwg.org/base-drafts/draft-ietf-quic-http.html#name-connection-shutdown

Note: I'm not sure the client is handling graceful shutdown properly itself; we may need to fix this as well in order to get this all to work.

Activity

  1. added this to the 6.0.0 milestone on Jul 1, 2021
  2. ghost added
    untriaged
    on Jul 1, 2021
  3. changed the title [-]HTTP3 tests: Loopback server should handle graceful shutdown properly[/-] [+][HTTP/3] Loopback server should handle graceful shutdown properly[/+] on Jul 1, 2021
  4. added
    test-enhancement
    and removed
    untriaged
    on Jul 1, 2021
  5. removed
    test-enhancement
    on Jul 6, 2021
  6. geoffkizer commented on Jul 6, 2021

    @geoffkizer
    ContributorAuthor

    I'm removing "test enhancement" here because the root issue isn't a test issue. We can't implement this properly in the loopback server because there's some product issue (not understood yet) that causes this to not work.

  7. added
    test-bug
    on Jul 13, 2021
  8. karelz commented on Jul 13, 2021

    @karelz
    Member

    Triage: Affects test reliability

  9. ghost added
    in-pr
    on Jul 22, 2021
  10. ghost removed
    in-pr
    on Jul 24, 2021
  11. ghost locked as resolved and limited conversation to collaborators on Aug 23, 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.Httptest-bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions