Open ZumiKua opened 1 week ago
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?
Thanks for your reply!
The workaround of calling Resolv.getaddresses
is sufficient for me (I'm writing a small one-time use script), so no WSL2 is needed I think.
Please take your time to fix this issue, thanks again for your wonderful work.
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 is0.67.1
It seems that this exception is thrown while calling
Resolv.getaddresses
, if I call this method manually, this exception goes away.