Skip to content

[3.14] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955) #134980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 31, 2025

  • Hard-cap max file descriptors in subprocess test fd_status

On some systems, SC_OPEN_MAX may return a very large value (i.e. 10**30), leading to the subprocess test timing out (or run forever).
Prevent this situation by applying a hard cap on how many file descriptors are checked.

  • Fix typo in usage docstring

s/fd_stats/fd_status/
(cherry picked from commit f58873e)

Co-authored-by: Itamar Oren [email protected]

…status (pythonGH-134955)

* Hard-cap max file descriptors in subprocess test fd_status

On some systems, `SC_OPEN_MAX` may return a very large value (i.e. 10**30), leading to the subprocess test timing out (or run forever).
Prevent this situation by applying a hard cap on how many file descriptors are checked.

* Fix typo in usage docstring

s/fd_stats/fd_status/
(cherry picked from commit f58873e)

Co-authored-by: Itamar Oren <[email protected]>
@gpshead gpshead enabled auto-merge (squash) May 31, 2025 14:30
@gpshead gpshead merged commit d6f356e into python:3.14 May 31, 2025
44 checks passed
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