Skip to content

Implement AsRawFd for AddrStream behind feature flag? #2245

Closed
differs/Legends
#5
@tedsta

Description

@tedsta

Hi, I have a use-case where I want to access the file descriptor of a long-lived stream (it becomes a websocket) for monitoring purposes (specifically linux's send-q stat, the amount of unacknowledged outbound bytes) - see here.

Would you be ok with implementing AsRawFd for AddrStream, maybe behind a feature flag? Or otherwise provide a way to get a &tokio::net::TcpStream from a &AddrStream? If it helps and you are open to it I can prepare a PR.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-serverArea: server.C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions