From 7246d2f2d1601dbb5486ce7f9ddbebd1bb975b58 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Feb 2011 20:39:41 -0800 Subject: bump required Unicorn dependency for Kgio We want to use the singleton methods in Kgio to reduce conditionals. --- lib/rainbows/revactor/client.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rainbows/revactor') diff --git a/lib/rainbows/revactor/client.rb b/lib/rainbows/revactor/client.rb index 1aabf93..c587589 100644 --- a/lib/rainbows/revactor/client.rb +++ b/lib/rainbows/revactor/client.rb @@ -28,10 +28,6 @@ class Rainbows::Revactor::Client @client.write(buf) end - def write_nonblock(buf) # only used for errors - @client.instance_variable_get(:@_io).write_nonblock(buf) - end - def timed_read(buf2) buf2.replace(@client.read(*@rd_args)) end @@ -41,6 +37,10 @@ class Rainbows::Revactor::Client NULL_IO : IC.new(@ts = TeeSocket.new(@client), hp) end + def to_io + @client.instance_variable_get(:@_io) + end + def close @client.close @client = nil -- cgit v1.2.3-24-ge0c7