Skip to content

Retry http error related to DNS resolution failure.#4110

Merged
TingluoHuang merged 1 commit intomainfrom
users/tihuang/retry
Nov 13, 2025
Merged

Retry http error related to DNS resolution failure.#4110
TingluoHuang merged 1 commit intomainfrom
users/tihuang/retry

Conversation

@TingluoHuang
Copy link
Copy Markdown
Member

@TingluoHuang TingluoHuang requested a review from a team as a code owner November 13, 2025 18:07
Copilot AI review requested due to automatic review settings November 13, 2025 18:07
Copy link
Copy Markdown
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 adds retry logic for DNS resolution failures at the socket level by including SocketError.HostNotFound as a retryable network error, addressing issue #5782. The change ensures consistency across different exception types when handling transient DNS-related failures.

  • Adds SocketError.HostNotFound to the list of retryable socket errors in network exception handling
  • Standardizes using statement ordering in VssHttpRetryMessageHandler.cs to follow C# conventions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Sdk/Common/Common/VssNetworkHelper.cs Adds SocketError.HostNotFound to retryable network errors, ensuring DNS lookup failures at the socket level are retried consistently with other exception types
src/Sdk/Common/Common/VssHttpRetryMessageHandler.cs Reorders using statements to follow standard C# convention (System namespaces first, alphabetically)

@TingluoHuang TingluoHuang merged commit b3a60e6 into main Nov 13, 2025
16 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/retry branch November 13, 2025 18:24
alinetskyi pushed a commit to CoreumFoundation/runner that referenced this pull request Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants