Skip to content
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 container.stats infinite blocking on stream mode #3120

Merged
merged 1 commit into from
May 7, 2023

Conversation

RazCrimson
Copy link
Contributor

@RazCrimson RazCrimson commented May 6, 2023

Original Issue: #3118

Cause
The HTTP client is not invoked with the stream mode when making the GET HTTP call for the stats API, leading to the client trying to read the whole response instead of treating it as a stream, causing a infinite block.

This seems to be a regression from e9d4ddf

Fix
Add the removed stream parameter when making the GET Request call

Notes
Includes additional test for non streaming mode

Fixes #3118

@thaJeztah
Copy link
Member

@milas ptal

Includes additional test for no streaming

Signed-off-by: Bharath Vignesh J K <[email protected]>
@milas milas merged commit 443a353 into docker:main May 7, 2023
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.

Containers stats is broken in Docker-py 6.1.0
3 participants