Skip to content

Unable to establish connection on Windows 10. #44

@vinnydiehl

Description

@vinnydiehl

On Windows 10 RubyInstaller 3.0.5, no code within my Async::WebSocket::Client.connect block is being run, the program just hangs.

On RubyInstaller 3.1.2, the situation is even worse- it crashes with the following error:

  0.0s     warn: Async::Task [oid=0x280] [ec=0x294] [pid=32436] [2022-12-13 00:36:46 -0500]
               | Task may have ended with unhandled exception.
               |   Errno::EBADF: Bad file descriptor
               |   → <internal:io> 63
               |     C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/io-event-1.1.4/lib/io/event/selector/select.rb 206

The exact same code run on WSL communicates with the websocket as expected.

Code and more information on my specific implementation here.

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