From d4a2b5dd2b85f4b2d3bb120ee1e1b0dde31bc25c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 20 Oct 2010 17:48:58 -0700 Subject: unicorn 2.x updates + kgio We get basic internal API changes from Unicorn, code simplifications coming next. --- lib/rainbows/writer_thread_spawn.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rainbows/writer_thread_spawn.rb') diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb index 17aa835..dfd6c39 100644 --- a/lib/rainbows/writer_thread_spawn.rb +++ b/lib/rainbows/writer_thread_spawn.rb @@ -34,6 +34,14 @@ module Rainbows to_io.readpartial(size, buf) end + def kgio_read(size, buf = "") + to_io.kgio_read(size, buf) + end + + def kgio_read!(size, buf = "") + to_io.kgio_read!(size, buf) + end + def write_nonblock(buf) to_io.write_nonblock(buf) end -- cgit v1.2.3-24-ge0c7