Skip to content

Constructing TcpListener from std::net::TcpListener for fine-grained socket control #690

@code-withAshish

Description

@code-withAshish

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions