diff --git a/lib/dalli/socket.rb b/lib/dalli/socket.rb index 93601123..26828217 100644 --- a/lib/dalli/socket.rb +++ b/lib/dalli/socket.rb @@ -49,6 +49,14 @@ class SSLSocket < ::OpenSSL::SSL::SSLSocket def options io.options end + + def wait_readable(timeout) + IO.select([self], nil, nil, timeout) + end + + def wait_writable(timeout) + IO.select(nil, [self], nil, timeout) + end end class TCP < TCPSocket