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

add set_reuse_port to tcp and framed_tcp #176

Open
aseuler opened this issue Jul 20, 2024 · 1 comment
Open

add set_reuse_port to tcp and framed_tcp #176

aseuler opened this issue Jul 20, 2024 · 1 comment

Comments

@aseuler
Copy link

aseuler commented Jul 20, 2024

please add the config option that we can open the tcp and framed_tcp port reuse feature, thanks.

`rust
tcp.rs/ LocalResource::listen_with
socket.set_reuse_port(true)?;
socket.set_nodelay(true)?;

framed_tcp.rs/ LocalResource::listen_with
socket.set_reuse_port(true)?;
socket.set_nodelay(true)?;
socket.bind(&addr.into())?;

`

BR

@lemunozm
Copy link
Owner

Hi, I agree that could be a good feature. Could you open a PR with this?

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

No branches or pull requests

2 participants