eio
eio copied to clipboard
A libeio (http://software.schmorp.de/pkg/libeio.html) wrapper for Ruby
Mod list upon request Minecraft 1.10.2 custom mod pack using Curse launcher EIO textures vanish and reappear at will, see attached screen shot for an example. How to replicate: Place...
Currently the whole EM flips over: ``` /Library/Ruby/Gems/1.8/gems/eio-0.1/lib/eio/eventmachine.rb:13:in `poll': No such file or directory - /test/testfile (Errno::ENOENT) from /Library/Ruby/Gems/1.8/gems/eio-0.1/lib/eio/eventmachine.rb:13:in `notify_readable' from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine' from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run' from server.rb:7 ```
The issue is taken from: https://groups.google.com/forum/#!msg/eventmachine/oK74Pc92TvE/TX2lU0QvrBkJ Below is a snippet which fails with: ./async_write.rb:8:in `write': string contains null byte (ArgumentError) from ./async_write.rb:8:in`block (2 levels) in ' from /usr/local/lib/ruby/gems/1.9.1/gems/eio-0.1/lib/eio/eventmachine.rb:13:in `call' from...
This is a blocker. This can be easily reproduced using ``` ruby EM.run do EIO.eventmachine_handler # let libeio notify when there's result callbacks to invoke EIO.open(path, EIO::RDWR|EIO::CREAT) do |fd| EIO.write(fd,...
I try this ``` path = "/tmp/asyncdl.out" file = nil EM.run do EIO.eventmachine_handler # let libeio notify when there's result callbacks to invoke # file = File.new('/tmp/asyncdl.out', 'w') # EIO.write(file.fileno,...
Preparation ``` mkdir many for i in {1..100000} ; do touch many/$i ; done ``` Failed ``` require 'eventmachine' require 'eio/eventmachine' EM.run do EIO.eventmachine_handler EIO.readdir('many') {|f| } EIO.readdir('many') {|f| }...