Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@chillakalyan
Copy link

This is my first open-source contribution
I added a compatibility fallback inside the ngx_event_accept() function (in src/event/ngx_event_accept.c)
to handle the case where accept4() fails with EINVAL (Invalid argument) on RedHat Enterprise Linux 9 systems.

This fix ensures that NGINX continues accepting connections gracefully by falling back to accept()
when accept4() is unsupported or behaves inconsistently with the SOCK_NONBLOCK flag.

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

🎉 Thank you for your contribution! It appears you have not yet signed the F5 Contributor License Agreement (CLA), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the F5 CLA and reply on a new comment with the following text to agree:


I have hereby read the F5 CLA and agree to its terms


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@chillakalyan
Copy link
Author

I have hereby read the F5 CLA and agree to its terms

@ac000
Copy link
Member

ac000 commented Nov 6, 2025

Hi,

Thanks for your contribution.

However I doubt...

AFAICT the only time you will get EINVAL specifically from accept4(2)
is when the flags argument is invalid.

How often are you seeing this (if at all)?

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