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

sys::socket: adding freebsd's ReusePortLb constant. #2332

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented Mar 10, 2024

Allows to use SO_REUSEPORT_LB so incoming connections can be distributed to bound (up to 256) sockets in a Load-Balanced fashion.

@@ -270,6 +270,16 @@ sockopt_impl!(
libc::SO_REUSEPORT,
bool
);
#[cfg(target_os = "freebsd")]
Copy link
Member

Choose a reason for hiding this comment

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

Any chance that we can add a unit test for this option? Maybe a simple set-and-get test?

Allows to use `SO_REUSEPORT_LB` so incoming connections can be distributed
to bound (up to 256) sockets in a Load-Balanced fashion.
@SteveLauC
Copy link
Member

CI / tier3 (x86_64-unknown-dragonfly) (pull_request)

This Ci failure is not related to this PR

Copy link
Member

@SteveLauC SteveLauC left a comment

Choose a reason for hiding this comment

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

Thx!

@SteveLauC SteveLauC added this pull request to the merge queue Mar 16, 2024
Merged via the queue into nix-rust:master with commit a0078c1 Mar 16, 2024
34 of 35 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