Skip to content

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

@aamazigh

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

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