Skip to content

[3.13] gh-126876: Fix socket internal_select() for large timeout (GH-126968)#127002

Merged
vstinner merged 4 commits intopython:3.13from
miss-islington:backport-b3687ad-3.13
Dec 2, 2024
Merged

[3.13] gh-126876: Fix socket internal_select() for large timeout (GH-126968)#127002
vstinner merged 4 commits intopython:3.13from
miss-islington:backport-b3687ad-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 19, 2024

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 b3687ad)

Co-authored-by: Victor Stinner vstinner@python.org

…onGH-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 b3687ad)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
Copy link
Member

vstinner commented Dec 2, 2024

I included my second test_socket fix #127517 in this backport.

@vstinner vstinner merged commit 059114c into python:3.13 Dec 2, 2024
@miss-islington miss-islington deleted the backport-b3687ad-3.13 branch January 2, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants