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

fabtests: Add backlog > 0 to listen call #9963

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

zachdworkin
Copy link
Contributor

Currently the listen() call has a 0 value for backlog. This causes syn (synchronize) flooding on port 3000. Port 3000 is used by fabtests for OOO (out of bounds) exchanges.

This call needs to have a non-zero positive value for backlog to prevent this flooding. Setting the backlog is necessary so that it is changeable by the user and not hidden values that users must set at the kernel level. The kernel variables are called net.ipv4.tcp_max_syn_backlog, and net.core.somaxconn to fix the issue instead. However, it is encouraged that a user make sure all of these values are set appropriately as well as using an adequate size for backlog in the listen call.

Currently the listen() call has a 0 value for backlog.
This causes syn (synchronize) flooding on port 3000.
Port 3000 is used by fabtests for OOO (out of bounds) exchanges.

This call needs to have a non-zero positive value for backlog
to prevent this flooding. Setting the backlog is necessary so
that it is changeable by the user and not hidden values that
users must set at the kernel level. The kernel variables are
called net.ipv4.tcp_max_syn_backlog, and net.core.somaxconn to
fix the issue instead. However, it is encouraged that a user
make sure all of these values are set appropriately as well
as using an adequate size for backlog in the listen call.

Signed-off-by: Zach Dworkin <[email protected]>
@zachdworkin zachdworkin requested review from a user and ooststep April 1, 2024 22:49
@j-xiong
Copy link
Contributor

j-xiong commented Apr 2, 2024

bot:aws:retest

@zachdworkin zachdworkin merged commit d187bde into ofiwg:main Apr 2, 2024
13 checks passed
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