Skip to content

Conversation

@the-glu
Copy link
Contributor

@the-glu the-glu commented Jan 12, 2026

Follow #1298 to avoid conflicts on the same code area.

Fix #1306 by making ConnectionResetError retryable.

Not tested, as the change is simple and creating an environment with random connection reset is complex.

# ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
# ...and this may be retryable
retryable = True
elif "ConnectionResetError" in str(e):
Copy link
Member

Choose a reason for hiding this comment

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

While I'm sure this will work fine most of the time practically, can we make this more robust by checking the actual type rather than looking in the string representation? And, perhaps checking the message for "Connection reset by peer" if we always see that in the errors we think are valid to retry?

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.

Have mock_uss retry queries with connection reset by peer

2 participants