about summary refs log tree commit homepage
path: root/lib/rainbows/socket_proxy.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-28 08:17:01 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-28 08:17:01 +0000
commit65f251070ce9b61a9049cb413fccffdfa11e7a70 (patch)
tree6cf5c9d0f63f84688e0f05f9ac88de339ce157b1 /lib/rainbows/socket_proxy.rb
parent905f0ff393629ddb4d70e3dc221b016128c47415 (diff)
downloadrainbows-65f251070ce9b61a9049cb413fccffdfa11e7a70.tar.gz
This fixes up breakage introduced in commit
905f0ff393629ddb4d70e3dc221b016128c47415 to switch to
kgio for timed, synchronous waiting.
Diffstat (limited to 'lib/rainbows/socket_proxy.rb')
-rw-r--r--lib/rainbows/socket_proxy.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rainbows/socket_proxy.rb b/lib/rainbows/socket_proxy.rb
index e4cb686..c4269df 100644
--- a/lib/rainbows/socket_proxy.rb
+++ b/lib/rainbows/socket_proxy.rb
@@ -18,6 +18,14 @@ module Rainbows::SocketProxy
     to_io.kgio_trywrite(buf)
   end
 
+  def kgio_tryread(size, buf = "")
+    to_io.kgio_tryread(size, buf)
+  end
+
+  def kgio_wait_readable(timeout = nil)
+    to_io.kgio_wait_readable(timeout)
+  end
+
   def timed_read(buf)
     to_io.timed_read(buf)
   end