]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126876: Fix socket internal_select() for large timeout (#126968)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Nov 2024 08:08:42 +0000 (09:08 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 08:08:42 +0000 (09:08 +0100)
commitb3687ad454c4ac54c8599a10f3ace8a13ca48915
treec11880ac43bd1d01d386c16fe1af8f3fae793b32
parentd6b3e78504b3168c432b20002dbcf8ec9a435e61
gh-126876: Fix socket internal_select() for large timeout (#126968)

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

Add an unit test.
Lib/test/test_socket.py
Modules/socketmodule.c