Skip to content

any workaround to allow registering to different Poll? #1643

@jkarneges

Description

@jkarneges

The docs mention this limitation: "A handle can be passed back to register after it has been deregistered; however, it must be passed back to the same Poll instance, otherwise the behavior is unspecified."

I wonder if it's possible to work around this, for example by using into_raw_fd / from_raw_fd to throw away any mio-specific state. Or is this an unavoidable OS-level limitation even on unix?

Rationale: we have an application with a Poll instance per-thread, and we are looking at implementing a global connection pool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions