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

feature for all runtime adapters: add the ability to provide a pre-bound TcpListener instead of host+port #200

Closed
jbr opened this issue Apr 6, 2022 · 3 comments · Fixed by #309

Comments

@jbr
Copy link
Contributor

jbr commented Apr 6, 2022

from #198

@joshtriplett
Copy link
Collaborator

I'd like this as well, so that I can bind to a privileged port and then drop privileges.

@jbr
Copy link
Contributor Author

jbr commented Sep 13, 2023

This is released as Config::with_prebound_server as patch releases for all three runtimes (trillium-tokio-v0.3.2, trillium-async-std-v0.3.1, and trillium-smol-v0.3.1). Example usage for tokio is at tokio/examples/tokio_binding.rs and usage is identical for the other two runtimes.

@joshtriplett
Copy link
Collaborator

@jbr That's incredible, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants