Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to establish connection on Windows 10. #44

Open
vinnydiehl opened this issue Dec 13, 2022 · 1 comment
Open

Unable to establish connection on Windows 10. #44

vinnydiehl opened this issue Dec 13, 2022 · 1 comment

Comments

@vinnydiehl
Copy link

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.

@ioquatix
Copy link
Member

Windows support is a work in progress, but we are making progress.

If you are able to help with any of the above, before Dec 25, we will be able to support it in Ruby 3.2 - specifically we need to support as much non-blocking IO on Windows as possible.

Otherwise, I'd recommend just using WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants