Skip to content
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

Re-use previously closed FDs #4896

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Re-use previously closed FDs #4896

merged 1 commit into from
Jun 25, 2024

Conversation

Arshia001
Copy link
Member

@Arshia001 Arshia001 commented Jun 25, 2024

This aligns with the Unix requirement that any newly returned FD must be the lowest unopened FD, and improves apps that use select, which only supports 1K FDs.

This PR also makes the FD table use ahash, which should be faster.

Copy link
Contributor

@maminrayej maminrayej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a test to pin down this behavior would be nice.

@Arshia001 Arshia001 merged commit 65e9237 into main Jun 25, 2024
62 checks passed
@Arshia001 Arshia001 deleted the fix/reuse-fds branch June 25, 2024 15:41
@theduke
Copy link
Contributor

theduke commented Jun 25, 2024

Retroactively approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants