Skip to content

Quarantine Http3TimeoutTests.HEADERS_TrailerIncompleteFrameReceivedWithinRequestHeadersTimeout_StreamError #67346

Closed

Description

@github-actions

Failing Test

Microsoft.AspNetCore.Server.Kestrel.Core.Tests.Http3TimeoutTests.HEADERS_TrailerIncompleteFrameReceivedWithinRequestHeadersTimeout_StreamError

Error Message

System.InvalidOperationException: Expected error code RequestRejected, got -1.

Stacktrace

Stack trace
System.InvalidOperationException: Expected error code RequestRejected, got -1.
   at Microsoft.AspNetCore.InternalTesting.Http3StreamBase.WaitForStreamErrorAsync(Http3ErrorCode protocolError, Action`1 matchExpectedErrorMessage, String expectedErrorMessage) in /_/src/Servers/Kestrel/shared/test/Http3/Http3InMemory.cs:line 667
   at Microsoft.AspNetCore.Server.Kestrel.Core.Tests.Http3TimeoutTests.HEADERS_TrailerIncompleteFrameReceivedWithinRequestHeadersTimeout_StreamError() in /_/src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3TimeoutTests.cs:line 777

Logs

Test ran for 30 seconds (the timeout threshold), indicating the test was stuck waiting for a RequestRejected stream error that never arrived. The stream closed with code -1 (unknown/no error) instead of the expected Kestrel timeout error.

Helix job: cdab84aa-021d-4da5-98de-8466abff6a0b, workitem: InMemory.FunctionalTests--net11.0
Log: Http3TimeoutTests_HEADERS_TrailerIncompleteFrameReceivedWithinRequestHeadersTimeout_StreamError.log

Build

Build 1474207

Also failed in 1 additional pipeline 87 build.

Generated by Daily Test Quarantine Management · 5.7K AIC · ⌖ 52 AIC · ⊞ 25.6K · ◷

Activity

  1. github-actions commented on Jun 21, 2026

    @github-actions
    ContributorAuthor

    Investigation

    The test verifies that when a fragmented trailer HEADERS frame is received, Kestrel's RequestHeadersTimeout eventually fires and closes the stream with a RequestRejected error code.

    In the failing run, the test hung for 30 seconds (equal to the test timeout) and then the stream closed with error code -1 instead of the expected RequestRejected. The likely scenario is that the in-memory transport did process the fragmented headers bytes differently under CI timing pressure, either delivering them fast enough that no timeout was needed, or that the timeout mechanism was not properly re-armed after the initial request headers.

    This test was recently added to cover the case of trailer headers arriving in multiple reads. The timing-sensitive nature of the timeout assertion (the test deliberately sends headers slowly to trigger the timeout) makes it susceptible to CI scheduling variability. The test waits exactly as long as the mock timer, so any scheduling delay could cause the timer to fire at a different point in the state machine.

    Generated by Daily Test Quarantine Management · 5.7K AIC · ⌖ 52 AIC · ⊞ 25.6K · ◷

  2. added
    area-networking
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingtest-failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions