-
Notifications
You must be signed in to change notification settings - Fork 265
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
Overcome "Connection Refused" on some operations #174
base: master
Are you sure you want to change the base?
Conversation
ee6a92d
to
0941e35
Compare
ed137b3
to
8d21c4f
Compare
3 similar comments
3 similar comments
dd61198
to
cbfbc4b
Compare
Now retries is off by default, please re-review. |
@dagwieers , any news? |
No, I am waiting for feedback. |
BTW The pypsrp code has this code added recently: jborean93/pypsrp#10 |
Please review ! |
We have this exact same issue when installing SCVMM. Would be good to see this reviewed and implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can remove this, and rebase/merge from master...I can merge this.
@@ -4,3 +4,4 @@ pytest<=3.2.5 | |||
pytest-cov | |||
pytest-pep8 | |||
mock | |||
pycparser<=2.18; python_version<"2.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be removed since python 2.6 is no longer supported.
If you are moving forward with this request you will need to optionally set |
Running into problems which this PR would fix too - not sure if you're able to progress with this @dagwieers or anything I can do? |
We are testing this patch because we also have connection issues with WinRM. It seems that this patch helps a lot (but it does not cover all errors) on ReadTimeout. It would be great to see it merged. |
Hi there, |
@dagwieers Can you please rebase this with the required review comments? Thanks |
Any update on this one? I'd love to have it implemented |
So some operations on Windows actually cause the WinRM service to become unavailable for some time and WinRM currently cannot overcome this problem. Since this is a real problem to us when e.g. installing SCVMM on servers and we cannot influence the installer, here is the
work-aroundfix we implemented.The current implementation simply tries 5 times with a 5 seconds delay, but YMMV. Ideally this is configurable by the user, and future defaults should be tested.This fixes ansible/ansible#25532