Skip to content

Best way to setup a timeout on tcp connection? #79

Description

@aamazigh

How would you set a timeout on a tcp connection when echoing a server?

The echo method uses TCPSocket, which, as far as I know, doesn't have a timeout.

@session = TCPSocket.new(adress, port)

Thank you in advance.

Best regards,

Amazigh

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