Constructing TcpListener from std::net::TcpListener for fine-grained socket control in glommio async runtime

āš“ Rust    šŸ“… 2025-09-07    šŸ‘¤ surdeus    šŸ‘ļø 1      

surdeus

I’d like to be able to create a glommio::net::TcpListener directly from a pre-configured std::net::TcpListener (or socket2::Socket) to set options like SO_REUSEPORT and other low-level socket parameters. Currently, from_raw_fd works, but it requires unsafe code.

It would be helpful to have a safe, ergonomic API for constructing a Glommio listener from an existing standard listener to enable fine-grained socket configuration.

Is there already such api?

5 posts - 2 participants

Read full topic

šŸ·ļø Rust_feed