Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Oct 3, 2025

Copilot AI review requested due to automatic review settings October 3, 2025 15:31
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 3, 2025
@jkotas jkotas requested a review from EgorBo October 3, 2025 15:32
@jkotas jkotas requested a review from MihaZupan October 3, 2025 15:32
@jkotas jkotas added area-System.Net and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the socket error mapping implementation by replacing dictionary-based lookups with switch expressions for better performance and readability.

Key changes:

  • Replaces dictionary-based error mapping with switch expressions
  • Removes debug assertions and associated constants for dictionary count validation
  • Consolidates mapping logic into shared helper methods

@dotnet-policy-service
Copy link
Contributor

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

@jkotas jkotas changed the title Use switch statement to map socker errors Use switch statement to map socket errors Oct 3, 2025
jkotas and others added 2 commits October 3, 2025 08:40
…x.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…x.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…x.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
@jkotas jkotas merged commit 0082733 into dotnet:main Oct 3, 2025
83 of 86 checks passed
@jkotas jkotas deleted the socket-errors branch October 3, 2025 23:21
@jkotas jkotas mentioned this pull request Oct 4, 2025
12 tasks
@am11
Copy link
Member

am11 commented Oct 6, 2025

/backport to release/10.0

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18288262494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants