mirror of
https://github.com/python/cpython.git
synced 2026-01-03 05:54:03 +00:00
gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270)
The parameter `amt` of `HTTPResponse.read()`, which could be a negative integer,
has not been handled before and led to waiting for the connection to close
for `keep-alive connections`. Now, this has been fixed, and passing negative values
to `HTTPResponse().read()` works the same as passing `None` value.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| Build | ||
| C API | ||
| C_API | ||
| Core and Builtins | ||
| Core_and_Builtins | ||
| Documentation | ||
| IDLE | ||
| Library | ||
| macOS | ||
| Security | ||
| Tests | ||
| Tools-Demos | ||
| Windows | ||