Skip to content

EventLoop::deregister(TcpStream) falls to 'No such file or directory (os error 2)' #351

@workanator

Description

@workanator

Hello,
after a TCP socket is shutdown by remote host call to EventLoop::deregister(TcpStream) fails with error No such file or directory (os error 2). MIO v0.4.x lacks of that behavior so I was able to deregister active or shutdown sockets without getting the error.
In my project sockets can be closed by my application or by remote hosts and I need to deregister them properly. Is there a way I can test if socket is active before call to EventLoop::deregister?
I run on Mac OS X El Captain, Rust 1.6, branch master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions