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_pool.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rainbows/writer_thread_pool.rb') diff --git a/lib/rainbows/writer_thread_pool.rb b/lib/rainbows/writer_thread_pool.rb index c4d8d9f..5c8e2a3 100644 --- a/lib/rainbows/writer_thread_pool.rb +++ b/lib/rainbows/writer_thread_pool.rb @@ -29,6 +29,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