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

tcp,cmake: use accept4 if supported #665

Merged
merged 1 commit into from
Jan 28, 2023
Merged

tcp,cmake: use accept4 if supported #665

merged 1 commit into from
Jan 28, 2023

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Jan 27, 2023

Using accept4 with SOCK_NONBLOCK flag saves extra system calls to fcntl(2) to achieve the same result.

@sreimers sreimers changed the title tcp,cmake: add accept4 if supported tcp,cmake: use accept4 if supported Jan 27, 2023
@sreimers sreimers marked this pull request as ready for review January 27, 2023 20:23
@alfredh
Copy link
Contributor

alfredh commented Jan 28, 2023

great!

@sreimers sreimers merged commit e5190b6 into main Jan 28, 2023
@sreimers sreimers deleted the accept4 branch January 28, 2023 08:51
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.

2 participants