SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
059114c0a0bc60c1d180eefa54e8483e3a8e9b5e
Parent: cab2ef5
Committed by GitHub <noreply@github.com> on 12/2/2024, 4:25:55 PM