You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2024. It is now read-only.
Hi,
We have an issue with Async::IO::Endpoint#connect on Windows.
On Mac, the methods returns with Errno 61 Connection refused if the server does not respond. But on Windows, it blocks forever if the server does respond within the first 2 seconds.
If server is started first and then client.rb, it works on both Mac and Windows.
But if client.rb is started first, and server.rb is started 2 seconds later or more, it only works on Mac. On Windows, client.rb hangs and never connects.
client.rb:
require'async'require'async/io'Asyncdo |task|
endpoint=Async::IO::Endpoint.tcp('127.0.0.1',13111)loopdoputs"connecting to server"endpoint.connectputs'connected'exitrescueStandardError=>etask.sleep1endend