From 96825e8ca734cfbbc3a79b55d6abda9b2f553fe4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Jan 2019 10:39:13 +0000 Subject: remove calls to kgio_wait_* able IO#wait_readable existed since Ruby 2.0, so we don't need to use the "kgio_"-prefixed version. --- extras/proxy_pass.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras') diff --git a/extras/proxy_pass.rb b/extras/proxy_pass.rb index 310da9e..af6fe01 100644 --- a/extras/proxy_pass.rb +++ b/extras/proxy_pass.rb @@ -36,7 +36,7 @@ class ProxyPass # :nodoc: attr_writer :expiry # called automatically by kgio_read! - def kgio_wait_readable(timeout = nil) + def wait_readable(timeout = nil) super(timeout || wait_time) end @@ -59,7 +59,7 @@ class ProxyPass # :nodoc: @expiry = Time.now + timeout case rv = kgio_trywrite(buf) when :wait_writable - kgio_wait_writable(wait_time) + wait_writable(wait_time) when nil return when String -- cgit v1.2.3-24-ge0c7