Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commented Dec 1, 2025

Reading the whole body of the HTTP response could cause OOM if
the Content-Length value is too large even if the server does not send
a large amount of data. Now the HTTP client reads large data by chunks,
therefore the amount of consumed memory is proportional to the amount
of sent data.
(cherry picked from commit 5a4c4a0)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…thonGH-119454) Reading the whole body of the HTTP response could cause OOM if the Content-Length value is too large even if the server does not send a large amount of data. Now the HTTP client reads large data by chunks, therefore the amount of consumed memory is proportional to the amount of sent data. (cherry picked from commit 5a4c4a0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
vivian-rook added a commit to wolfi-dev/advisories that referenced this pull request Dec 8, 2025
python-3.11 Upstream Fix PR: python/cpython#142141 python-3.12 Upstream Fix PR: python/cpython#142140 python-3.13 Upstream Fix PR: python/cpython#142139 python-3.13 Local Fix PR: wolfi-dev/os#75166 Signed-off-by: Vivian Rook <vivian.rook@chainguard.dev>
github-merge-queuebot pushed a commit to wolfi-dev/advisories that referenced this pull request Dec 8, 2025
python-3.11 Upstream Fix PR: python/cpython#142141 python-3.12 Upstream Fix PR: python/cpython#142140 python-3.13 Upstream Fix PR: python/cpython#142139 python-3.13 Local Fix PR: wolfi-dev/os#75166 Signed-off-by: Vivian Rook <vivian.rook@chainguard.dev>
@prashant1221
Copy link

Could you share the expected timeline for merging this backport? Are there any pending changes on this PR?

@lvets
Copy link

We're unable to upgrade to 3.13, any idea when this fix might be added to 3.11?

@pablogsalpablogsal merged commit afc40bd into python:3.11Jan 25, 2026
22 checks passed
@miss-islingtonmiss-islington deleted the backport-5a4c4a0-3.11 branch January 25, 2026 17:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

6 participants

@miss-islington@prashant1221@lvets@pablogsal@sethmlarson@serhiy-storchaka