Skip to content

TcpReceiveSendGetsCanceledByDispose timed out #131990

Description

@svick

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1542869
Build error leg or test failing: System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose
Pull request: https://github.com/dotnet/runtime.git/pull/131876

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose", "System.TimeoutException : The operation has timed out."],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
  Starting:    System.Net.Sockets.Tests (parallel test collections = on [10 threads], stop on fail = off)
    System.Net.Sockets.Tests.SendTo_SyncForceNonBlocking.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SocketOptionNameTest.MulticastInterface_Set_AnyInterface_Succeeds [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_Apm.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_SyncSpanForceNonBlocking.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_MemoryNativeTask.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_MemoryArrayTask.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_CancellableTask.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_Task.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.ConnectEap.Connect_ExposeHandle_FirstAttemptSucceeds(connectMode: "multi") [SKIP]
      EAP does not support IPAddress[] connect
    System.Net.Sockets.Tests.ConnectEap.MultiConnect_LingerState_Preserved(dnsConnect: False) [SKIP]
      EAP does not support IPAddress[] connect
    System.Net.Sockets.Tests.CreateSocket.Ctor_Raw_Supported_Success [SKIP]
      Condition(s) not met: "SupportsRawSockets"
    System.Net.Sockets.Tests.SendTo_Eap.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendTo_ArraySync.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose(receiveOrSend: False, ipv6Server: False, dualModeClient: False, owning: True) [FAIL]
      System.TimeoutException : The operation has timed out.
      Stack Trace:
        /_/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs(139,0): at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult[T](Task task, Byte& result)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1129,0): at System.Net.Sockets.Tests.SendReceive`1.<>c__DisplayClass21_0.<TcpReceiveSendGetsCanceledByDispose>b__0()
        /_/src/libraries/Common/tests/TestUtilities/System/RetryHelper.cs(94,0): at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
           at System.RetryHelper.ExecuteAsync(Func`1 test, Int32 maxAttempts, Func`2 backoffFunc, Predicate`1 retryWhen, String testName)
        /_/src/libraries/System.Net.Sockets/tests/FunctionalTests/SendReceive/SendReceive.cs(1057,0): at System.Net.Sockets.Tests.SendReceive`1.TcpReceiveSendGetsCanceledByDispose(Boolean receiveOrSend, Boolean ipv6Server, Boolean dualModeClient, Boolean owning)
        --- End of stack trace from previous location ---
    System.Net.Sockets.Tests.SendTo_SyncSpan.Datagram_UDP_AccessDenied_Throws_DoesNotBind [SKIP]
      HostUnreachable indicates missing local network permission; this test might pass or fail depending on the environment. Please verify manually.
    System.Net.Sockets.Tests.ConnectEap.MultiConnect_KeepAliveOptionsPreserved(dnsConnect: False) [SKIP]
      EAP does not support IPAddress[] connect
    System.Net.Sockets.Tests.ConnectEap.MultiConnect_ExposeHandle_TerminatesAtFirstFailure(dnsConnect: False) [SKIP]
      EAP does not support IPAddress[] connect
    System.Net.Sockets.Tests.ConnectEap.MultiConnect_MiscProperties_Preserved(dnsConnect: False) [SKIP]
      EAP does not support IPAddress[] connect
    System.Net.Sockets.Tests.ConnectEap.MultiConnect_DualMode_Preserved [SKIP]
      EAP does not support IPAddress[] connect
  Finished:    System.Net.Sockets.Tests

This looks like a duplicate of #56580, which was closed because it didn't seem to be occurring at the time.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1542869
Error message validated: [System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose System.TimeoutException : The operation has timed out.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/7/2026 9:52:06 AM UTC

Report

Build Repository Test Pull Request
1545350 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #132035
1545295 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #132032
1545135 dotnet/runtime System.Net.Sockets.Tests.SendReceive_MemoryNativeTask.TcpReceiveSendGetsCanceledByDispose
1544946 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #132023
1544724 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #132013
1544923 dotnet/runtime System.Net.Sockets.Tests.SendReceive_MemoryNativeTask.TcpReceiveSendGetsCanceledByDispose
1544136 dotnet/runtime System.Net.Sockets.Tests.SendReceive_MemoryNativeTask.TcpReceiveSendGetsCanceledByDispose
1543112 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #131959
1542869 dotnet/runtime System.Net.Sockets.Tests.SendReceive_Apm.TcpReceiveSendGetsCanceledByDispose #131876

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 9 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Socketsblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions