You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
github-actions commentedon Jun 21, 2026
Investigation
The test verifies that when a fragmented trailer HEADERS frame is received, Kestrel's
RequestHeadersTimeouteventually fires and closes the stream with aRequestRejectederror code.In the failing run, the test hung for 30 seconds (equal to the test timeout) and then the stream closed with error code
-1instead of the expectedRequestRejected. 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.
[test-quarantine] Unquarantine 3 reliably-passing tests
[test-quarantine] Unquarantine 2 reliably-passing tests (#68902)