Skip to content

Hang: WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly times out on WASI #137534

Closed

Description

@lewing

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1680822
Build error leg or test failing: wasi-wasm linux Release LibraryTestsCoreCLR_WASI-System.Net.Http.WasiHttpHandler.Functional.Tests
Pull request: #137530

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

[02:05:11] info: [STRT] System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly(chunkedTransfer: False, mode: Token)
[02:06:23] info: [FAIL] System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly(chunkedTransfer: False, mode: Token)
[02:06:23] info: System.TimeoutException : The operation has timed out.
[02:06:23] info:    at System.Net.Http.Functional.Tests.HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly(Boolean chunkedTransfer, CancellationMode mode)
[02:06:24] info: Tests run: 195 Passed: 183 Inconclusive: 0 Failed: 1 Ignored: 0 Skipped: 11

Console log: https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-137530-merge-f8be00cdd1d84eacba/WasmTestOnWasmtime-CLR-ST-System.Net.Http.WasiHttpHandler.Functional.Tests/1/console.fa4e4968.log?helixlogtype=result

The timeout comes from the loopback test harness (60s), not from the cancellation assertion. When the request is canceled while its body is being sent, the wasi:http host can abandon it before connecting to the loopback server, so the server side waits in AcceptConnectionAsync until the harness times out. This is a test race, not a product bug; the fix makes the server side tolerate a connection that never arrives under WasiHttpHandler, as the other request-content tests already do.

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly",
    "System.TimeoutException : The operation has timed out."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log

Note

This issue was generated with GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1680822
Error message validated: [[FAIL] System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly System.TimeoutException : The operation has timed out.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/14/2026 2:53:34 AM UTC

Report

Build Repository Test Pull Request
1680822 dotnet/runtime System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly #137530
1680765 dotnet/runtime System.Net.Http.Functional.Tests.WasiHttpHandler_HttpClientHandler_Cancellation_Test.PostAsync_CancelDuringRequestContentSend_TaskCanceledQuickly #137523

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Nov 14, 2026
  2. added
    untriaged
    on Nov 14, 2026
  3. dotnet-policy-service commented on Nov 14, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @karelz, @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  4. removed
    untriaged
    on Nov 14, 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

    Known Build Errorarea-System.Net.Httpblocking-clean-ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions