Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Constructing TcpListener from std::net::TcpListener for fine-grained socket control in glommio async runtime
Constructing TcpListener from std::net::TcpListener for fine-grained socket control in glommio async runtime
ā Rust š 2025-09-07 š¤ surdeus šļø 1Iā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
š·ļø Rust_feed