Skip to content

Prefer IO#wait_readable and IO#wait_writable where possible. #977

Open
@samuel-williams-shopify

Description

There are several instances of IO.select with a single file descriptor. It is better to use IO#wait_readable or IO#wait_writable` because it is more efficient internally.

unless IO.select(nil, [@socket], nil, connect_timeout)

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