Skip to content

POST_ClientCancellationBidirectional_RequestAbortRaised(protocol: Http2) test failure #38008

Open

Description

@BrennanConroy

Failing Test(s)

Interop.FunctionalTests.Http3.Http3RequestTests.POST_ClientCancellationBidirectional_RequestAbortRaised(protocol: Http2)

Error Message

System.Net.Http.HttpRequestException : An error occurred while sending the request.
---- System.IO.IOException : The request was aborted.
-------- System.IO.IOException : The decryption operation failed, see inner exception.
------------ System.ComponentModel.Win32Exception : The specified data could not be decrypted.

Stacktrace

Details
   at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.AspNetCore.Testing.TaskExtensions.TimeoutAfter[T](Task`1 task, TimeSpan timeout, String filePath, Int32 lineNumber) in /_/src/Shared/TaskExtensions.cs:line 90
   at Interop.FunctionalTests.Http3.Http3RequestTests.POST_ClientCancellationBidirectional_RequestAbortRaised(HttpProtocols protocol) in /_/src/Servers/Kestrel/test/Interop.FunctionalTests/Http3/Http3RequestTests.cs:line 698
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at System.Net.Http.Http2Connection.ThrowRequestAborted(Exception innerException)
   at System.Net.Http.Http2Connection.Http2Stream.CheckResponseBodyState()
   at System.Net.Http.Http2Connection.Http2Stream.TryEnsureHeaders()
   at System.Net.Http.Http2Connection.Http2Stream.ReadResponseHeadersAsync(CancellationToken cancellationToken)
   at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
----- Inner Stack Trace -----
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](TIOAdapter adapter, Memory`1 buffer)
   at System.Net.Http.Http2Connection.ProcessIncomingFramesAsync()
----- Inner Stack Trace -----

Logs

Http3RequestTests_POST_ClientCancellationBidirectional_RequestAbortRaised-Http2.log

Build

https://dev.azure.com/dnceng/public/_build/results?buildId=1449703&view=ms.vss-test-web.build-test-results-tab&runId=41737516&resultId=106591&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Activity

  1. Tratcher commented on Nov 2, 2021

    @Tratcher
    Member

    @BrennanConroy @halter73 this seems similar to #37943, where the client is getting corrupted or truncated data but this time at the TLS layer.

  2. halter73 commented on Nov 3, 2021

    @halter73
    Member

    This also looks identical to #37913 from six days ago.

  3. removed their assignment
    on Nov 19, 2021
  4. added
    area-networking
    and removed on Jun 2, 2023
  5. amcasey commented on Nov 21, 2023

    @amcasey
    Member

    #37913 was dup'd against #35070.

  6. modified the milestones: Test failures, Backlog on Feb 14, 2024
  7. amcasey commented on Sep 26, 2024

    @amcasey
    Member
  8. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    Re-quarantine: test failing again after being unquarantined

    Interop.FunctionalTests.Http3.Http3RequestTests.POST_ClientCancellationBidirectional_RequestAbortRaised was unquarantined in #65972 (merged 2026-03-25) but has started failing again on main.

    Failed 3 times over the past 30 days.

    Recent failures

    • Build 1565240 (2026-08-24, pr: none)
    • Build 1564603 (2026-08-24, pr: none)
    • Build 1563026 (2026-08-21, pr: none)

    Most recent failing build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1565240&view=results

    Failure signature

    The Http2 inline case passed in the most recent run, but the Http3 inline case failed with:

    [Interop.FunctionalTests.Http3.Http3RequestTests] [Error] Test threw an exception.
    Xunit.Sdk.ThrowsException: Assert.Throws() Failure: Exception type was not an exact match
    Expected: typeof(System.IO.IOException)
    Actual:   typeof(System.ObjectDisposedException)
       at Xunit.Assert.Throws(Type exceptionType, Exception exception) in /_/src/xunit.assert/Asserts/ExceptionAsserts.cs:line 45
       at Xunit.Assert.ThrowsAsync[T](Func`1 testCode) in /_/src/xunit.assert/Asserts/ExceptionAsserts.cs:line 272
       at Microsoft.AspNetCore.InternalTesting.TaskExtensions.TimeoutAfter[T](Task`1 task, TimeSpan timeout, String filePath, Int32 lineNumber)
       at Microsoft.AspNetCore.InternalTesting.TaskExtensions.DefaultTimeout[T](Task`1 task, Int32 milliseconds, String filePath, Int32 lineNumber) in /_/src/Shared/TaskExtensions.cs:line 56
       at Interop.FunctionalTests.Http3.Http3RequestTests.POST_ClientCancellationBidirectional_RequestAbortRaised(HttpProtocols protocol) in /_/src/Servers/Kestrel/test/Interop.FunctionalTests/Http3/Http3RequestTests.cs:line 1208
    

    Immediately before this assertion failure, the server-side host shutdown logged an unrelated race:

    System.ObjectDisposedException: Cannot access a disposed object.
    Object name: 'System.Net.Quic.QuicListener'.
       at System.Net.Quic.QuicListener.DisposeAsync()
       at Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal.QuicConnectionListener.DisposeAsync() in /_/src/Servers/Kestrel/Transport.Quic/src/Internal/QuicConnectionListener.cs:line 211
       ...
       at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.Dispose() in /_/src/Servers/Kestrel/Core/src/Internal/KestrelServerImpl.cs:line 287
    

    This matches the original failure pattern from #38008 — a race between client-side cancellation/abort handling on QUIC (HTTP/3) and the exact exception type surfaced (IOException expected vs. ObjectDisposedException/other actual types), which was never reliably fixed; PR #65972 unquarantined it based on 100% pass rate over 30 days, but flakiness has now resurfaced.

    Re-quarantining via [QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/38008")].

    A maintainer or contributor can add the no-quarantine-for-30-days label to the associated PR to tell the workflow not to re-quarantine this test for 30 days if it starts failing again.

    Generated by Daily Test Quarantine Management · auto · 373.3 AIC · ⌖ 10 AIC · ⊞ 4.2K · ◷

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

    HTTP3area-networkingfeature-kestreltest-failure

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions