Skip to content

Conversation

rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Sep 3, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings September 3, 2025 18:56
Copy link

@Copilot 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 tweaks the retry interceptor to handle additional network error conditions by adding "Broken pipe" as a retryable exception message.

  • Added "Broken pipe" as a retryable exception condition in the RetryInterceptor

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 68 to +72
e.getMessage().contains("Failed to connect") ||
e.getMessage().contains("unexpected end of stream") ||
e.getMessage().contains("Connection reset") ||
e.getMessage().contains("Read timed out")
e.getMessage().contains("Read timed out") ||
e.getMessage().contains("Broken pipe")
Copy link
Preview

Copilot AI Sep 3, 2025

Choose a reason for hiding this comment

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

String-based exception detection is fragile and error-prone. Consider checking exception types (e.g., SocketException, ConnectException) or using more specific exception handling instead of relying on error message text matching.

Copilot uses AI. Check for mistakes.

@rjrudin rjrudin merged commit 65e2719 into develop Sep 4, 2025
1 of 2 checks passed
@rjrudin rjrudin deleted the feature/retry-tweak branch September 4, 2025 14:16
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.

2 participants