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
Ruby version is ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
async http version is 0.67.1
It seems that this exception is thrown while calling Resolv.getaddresses, if I call this method manually, this exception goes away.
require'async'require'async/http/internet'pResolv.getaddresses("example.com")# comment this line will make this code throw.Asyncdointernet=Async::HTTP::Internet.newresponse=internet.get("https://example.com")presponse.readensureinternet.closeend
The text was updated successfully, but these errors were encountered:
I see the issue but I'm not able to fix it at this time. I'm planning to support IOCP on Windows which should fix this. Are you able to use WSL2 instead?
The reason why it works is because file IO is not working correctly in the fiber scheduler. By doing Resolv.getaddresses("example.com") outside of the Async{} block, it's loading the hosts file from disk and caching it.
Ruby version is
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
async http version is
0.67.1
It seems that this exception is thrown while calling
Resolv.getaddresses
, if I call this method manually, this exception goes away.The text was updated successfully, but these errors were encountered: