-
Notifications
You must be signed in to change notification settings - Fork 393
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
Fix Docker hanging (fixes #519) #692
Conversation
Fixes the docker library hanging issue
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.
Hi @gravelBridge, this seems to be about #519. The fix here may solve the hanging but does not seem to fix lack of integration with docker.transport.unixconn.UnixHTTPConnection
. I think this pull request is mistaken.
@hartwork Hey I'm one of the maintainers over at AutoGPT. This fixes our issue and we are using a Fork of vcrpy that has this change in it currently. https://github.com/Significant-Gravitas/vcrpy Could you explain your concern above please? |
Hi @dschonholtz, what I mean is that this pull requests fixes the 100% CPU use hanging symptom, but the call to the docker daemon is not intercepted —not recorded, not replayed — and as a result:
That's pretty bad in my book. If you want to see it yourself, try this for file import docker
import vcr
import urllib
@vcr.use_cassette('1.yml')
def test_docker_images():
env = docker.from_env()
images = env.images()
assert images
@vcr.use_cassette('2.yml')
def test_urllib():
response = urllib.request.urlopen('http://www.iana.org/domains/reserved').read()
assert b'Example domains' in response Now that that's confirmed not to work, I will close the pull request as mistaken. If you see a misunderstanding here, please let me know and help me understand it, and we can always re-open. Thanks! |
@hartwork could you point me to why this PR would cause the problem you indicate? I'm not familiar with this part of the VCRpy library code, but we have been missing out on patches for the past 2 months and now also v5.0.0 so I'd like to see if we can fix it (properly). |
@Pwuts please see my comment right above with details: #692 (comment) |
I read it before commenting, and am just not sure why there are issues with |
@Pwuts my impression is that docker-py uses a custom connection class |
Fixes #519