Skip to content

Test failure: TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert fails with Connection reset by peer on macOS #131798

Description

@rzikm

Test

System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert

Added recently in #130366 (Add low-level TLS state machine API (TlsContext / TlsSession)).

Symptom

Failing in CI on the OSX.26.Arm64.Open Helix queue — 6 builds between 2026-07-24 and 2026-08-04 (pipelines runtime and runtime-nativeaot-outerloop).

System.IO.IOException : Unable to read data from the transport connection: Connection reset by peer.
---- System.Net.Sockets.SocketException : Connection reset by peer

Notes

New test from the low-level TLS state machine API (#130366); fails only on macOS 26 ARM64 so far. The sibling test SocketBoundSession_HandshakeAndPingPong_Succeeds shows the same "Connection reset by peer" symptom on macOS and is likely the same underlying issue.

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue.

{
  "ErrorMessage": "SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Additional information about the issue reported

The error message itself (Unable to read data from the transport connection: Connection reset by peer) is generic and shared with other socket tests, so ErrorMessage is set to the fully-qualified test method name to scope the match to this specific failure. Build Analysis matches the string against the failed test's reported error, which includes the test name.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1538041
Error message validated: Unable to read data from the transport connection: Connection reset by peer
Result validation: ✅ Observed on osx.26.arm64.open in the above build (pipeline runtime, 2026-08-04). Additional failing builds: 1536154 (runtime-nativeaot-outerloop), 1532066, 1527700, 1526662 (runtime).

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1538041
Error message validated: [SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/4/2026 12:16:45 PM UTC

Report

Build Repository Test Pull Request
1540520 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert #131855
1540000 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert #131831
1539249 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert #129690
1538041 dotnet/runtime System.Net.Security.Tests.TlsSessionTests.SocketBoundSession_DeferredOptions_MultipleSni_SelectsMatchingCert

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 4 4

Activity

  1. dotnet-policy-service commented on Aug 4, 2026

    @dotnet-policy-service
    Contributor

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

  2. added this to the 11.0.0 milestone on Aug 4, 2026
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 4, 2026
  4. wfurt commented on Aug 6, 2026

    @wfurt
    Member

    should be fixed by #131857

  5. locked and limited conversation to collaborators on Sep 6, 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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions