-
Notifications
You must be signed in to change notification settings - Fork 30k
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
fix(cluster): respect the backlog from workers #33827
Conversation
@oyyd Could you add a test for this? |
@addaleax Have added a test monkey-patching the net module to ensure it works as expected. |
9262918
to
b322936
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Currently, the master process would ignore `backlog` from worker processes and use the default value instead. This commit will respect the first `backlog` passed to the master process for a specific handle. Refs: nodejs#4056
The included test failed on a windows environment of CI as both |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@oyyd do you plan to keep working on this? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@oyyd Test is consistently failing on Windows. Can you take a look? |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
I can't fix the failure on windows.. so that I'm going to close this PR. |
Encounter the same issue of #4056.
Currently, the master process would ignore
backlog
passed from worker processes and use the default value instead. This commit will respect the firstbacklog
passed to the master process for a specific handle.It seems hard to test
backlog
in a Node.js script. I use the script below andss
to checkbacklog
. It's correct on my Linux(Ubuntu):Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes