New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection reset by peer #40055
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
I think SDK won't automatically retry on TCP error. Is there any READ/WRITE timeout, or proxy in the middle that could close the TCP connection? What is the typical time from the start of a connection, to the interruption of the connection by "Connection reset by Peer"? |
There is no timeout or proxy. When it fails it does within the first 5 seconds or so. |
Is it possible for you to enable logging? https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/resourcemanager#enabling-logging I find that azure-core should have the retry on Exception @XiaofeiCao Please also take a look. |
You were right! I have a custom retry policy applied which was misconfigured! |
Hi Team,
Im getting Connection reset by Peer errors on the SDK.
I don't know how to properly handle these kind of errors why are they not being retried by the SDK internally.
I've managed to add a retry policy when calling the "listAsync" methods directly, but in other scenarios, like the one described below the exception occurs while it tries to refresh the objects internally
Stack Trace
Scenario 1 - Azure VM:
Scenario 2 - HealthCheck:
Code Snippet
Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: