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 }}
Repository navigation
Using File.read with async in Windows causes Bad file descriptor Exception #206
I guess it's a limitation of Windows. The best thing we can do is try to avoid doing any kind of asynchronous file IO, which isn't supported anyway in this situation. The simple solution is to just detect windows and skip any kind of asynchronous io_read and io_write operations.
Async on Windows is a work in progress. The first part was to get io-event working which is tested, but async itself is not well tested on Windows yet. We should probably disable the io_read and io_write hooks on Windows for this reason. I want to leave this issue open until we do that.
Activity
ioquatix commentedon Dec 6, 2022
I guess it's a limitation of Windows. The best thing we can do is try to avoid doing any kind of asynchronous file IO, which isn't supported anyway in this situation. The simple solution is to just detect windows and skip any kind of asynchronous
io_readandio_writeoperations.phenylshima commentedon Dec 6, 2022
Then I'll just try detecting Windows and avoid async file IO on it...
Thank you for your comment and advice.
I'm closing this issue.
ioquatix commentedon Dec 6, 2022
Async on Windows is a work in progress. The first part was to get
io-eventworking which is tested, but async itself is not well tested on Windows yet. We should probably disable theio_readandio_writehooks on Windows for this reason. I want to leave this issue open until we do that.ioquatix commentedon Dec 6, 2022
#184 now includes the above.