Skip to content

Fix container.stats infinite blocking on stream mode#3120

Merged
milas merged 1 commit intodocker:mainfrom
RazCrimson:main
May 7, 2023
Merged

Fix container.stats infinite blocking on stream mode#3120
milas merged 1 commit intodocker:mainfrom
RazCrimson:main

Conversation

@RazCrimson
Copy link
Copy Markdown
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
Copy Markdown
Member

@milas ptal

Includes additional test for no streaming

Signed-off-by: Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com>
@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