lib/rainbows/socket_proxy.rb in rainbows-4.0.0 vs lib/rainbows/socket_proxy.rb in rainbows-4.1.0
- old
+ new
@@ -16,9 +16,17 @@
def kgio_trywrite(buf)
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
end