methodmissing / eio

A libeio (http://software.schmorp.de/pkg/libeio.html) wrapper for Ruby
http://github.com/methodmissing/eio
Other
29 stars 0 forks source link

unable to write binary data to file #3

Open wquockATblurb opened 12 years ago

wquockATblurb commented 12 years ago

This is a blocker.

This can be easily reproduced using

    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, "buf contents: \0hello") do |b| # put the zero byte using \0
          EM.stop_event_loop
        end
      end
    end
methodmissing commented 12 years ago

Hey,

I currently have a lot going on, but will schedule some time for reported issues on the eio wrapper during the next few days. Apologies for not being able to make a faster turnaround - thanks for the bug report.