diff options
author | Eric Wong <e@80x24.org> | 2019-01-07 10:39:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-07 10:39:13 +0000 |
commit | 96825e8ca734cfbbc3a79b55d6abda9b2f553fe4 (patch) | |
tree | 4682db2f8cf258d86c531f79f383c1379ff0a40d /extras | |
parent | 775d12f58a6922576c9264f3637daa992babb532 (diff) | |
download | yahns-96825e8ca734cfbbc3a79b55d6abda9b2f553fe4.tar.gz |
IO#wait_readable existed since Ruby 2.0, so we don't need to use the "kgio_"-prefixed version.
Diffstat (limited to 'extras')
-rw-r--r-- | extras/proxy_pass.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |