Skip to content

Did we forget to call set_nonblocking in examples/from_std_listener.rs? #181

Description

@nojima

The documentation for TcpListener::from_std says:

The caller is responsible for ensuring that the listener is in non-blocking mode. Otherwise all I/O operations on the listener will block the thread, which will cause unexpected behavior.

However, examples/from_std_listener.rs doesn’t call set_nonblocking. Is it intentional / safe to omit it here?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions