-
Notifications
You must be signed in to change notification settings - Fork 264
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
Retry to send request after receiving connection reset by peer. #175
Conversation
how about giving a argument to specify try count? |
Code tries twice to send request and fails after that. Problem is observed while running ansible playbooks. Resending request helps.
1 similar comment
2 similar comments
@diyan: Is it feasible to integrate it soon? |
Blind retries at the |
Oh, it was the next one in the queue: #174 |
So my implementation is in #174 and currently has hard-coded retry count and sleep time. I would need advice on how we want to make this configurable. We have been using this in production now, as it fixes a few corner-cases described in Ansible issue ansible/ansible#25532 Also, there may be certain HTTP errors with additional WinRM information indicating a retry would work, I remember we discussed this at AnsibleFest SF. I don't know if we have some more information related to this ? |
Potentially we will, if you're still hitting those- I plugged in a hacked-up version of the SOAP fault preservation code, so we'll know everything there is to know about 500s in 0.3.0. |
We isolated the various requests that can fail and can be retried, #174 now implements what is possible. Please try this for your existing use-cases. |
Code tries twice to send request and fails after that.
Problem is observed while running ansible playbooks. Resending request helps.