]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-126876: Fix socket internal_select() for large timeout (GH-126968) (#127003)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Dec 2024 14:12:59 +0000 (15:12 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2024 14:12:59 +0000 (14:12 +0000)
commitb49e902b81a0ead84e2002f94a2a2b2ae9b09ada
tree36c9dfd49cc759e15effd584a8cee97bde312351
parentc40656eeff64bd54bd13c7a146f0b140ffdfdf7b
[3.12] gh-126876: Fix socket internal_select() for large timeout (GH-126968) (#127003)

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