]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126876: Fix socket internal_select() for large timeout (GH-126968) (#127002)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Dec 2024 16:25:55 +0000 (17:25 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2024 16:25:55 +0000 (16:25 +0000)
commit059114c0a0bc60c1d180eefa54e8483e3a8e9b5e
tree7b256ad41652484f804e0ff17e4fb470e79f9e70
parentcab2ef51251cda13a7772997b5c29d0ed860c511
[3.13] gh-126876: Fix socket internal_select() for large timeout (GH-126968) (#127002)

gh-126876: Fix socket internal_select() for large timeout (GH-126968)

If the timeout is larger than INT_MAX, replace it with INT_MAX, in
the poll() code path.

Add an unit test.
(cherry picked from commit b3687ad454c4ac54c8599a10f3ace8a13ca48915)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_socket.py
Modules/socketmodule.c