summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorYury Manushkin <manushkin@gmail.com>2025-01-28 11:37:32 (GMT)
committerGitHub <noreply@github.com>2025-01-28 11:37:32 (GMT)
commit4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317 (patch)
tree5cee215bfcf0c5aada56ac1bb3b879061f16e1cb /Python/sysmodule.c
parent8e57877e3f43e80762196f6869526d0c1585783a (diff)
downloadcpython-4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317.zip
cpython-4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317.tar.gz
cpython-4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317.tar.bz2
gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (#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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions