Skip to content

Initial connect call can hang forever #19

@thomasjm

Description

@thomasjm

I think there's a major flaw here -- I'm seeing a situation where the first Network.Socket.connect call hangs indefinitely. When this happens, the overall retry loop and timeout doesn't work.

The README mentions the wait-for project -- you'll notice that script includes a timeout on the individual connect requests such as the -w 1 parameter here.

I think the solution is to wrap each connect attempt in a call to System.Timeout.timeout, but I'm not confident that will work because it may be blocking in FFI code.

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