HFQR / xitca-web

Apache License 2.0
654 stars 41 forks source link

how to do so reuseport? #1037

Closed sprappcom closed 2 weeks ago

sprappcom commented 2 weeks ago

as titled

fakeshadow commented 2 weeks ago

There is https://docs.rs/xitca-web/latest/xitca_web/struct.HttpServer.html#method.listen if you use xitca-web. If you are using low level crates there is also https://docs.rs/xitca-server/0.3.0/xitca_server/struct.Builder.html#method.listen from xitca-server. Both of them accept std::net::TcpListener type