Skip to content

Commit

Permalink
Correctly delegate to underlying I/O.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 16, 2020
1 parent 41c912e commit 9dcd731
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/redis/connection/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ def self.connect(path, timeout)
class SSLSocket < ::OpenSSL::SSL::SSLSocket
include SocketMixin

def wait_readable(timeout = nil)
to_io.wait_readable(timeout)
end

def wait_writable(timeout = nil)
to_io.wait_writable(timeout)
end

def self.connect(host, port, timeout, ssl_params)
# Note: this is using Redis::Connection::TCPSocket
tcp_sock = TCPSocket.connect(host, port, timeout)
Expand Down

0 comments on commit 9dcd731

Please sign in to comment.