Skip to content

Commit

Permalink
SSLSocket doesn't expose wait_readable or wait_writable. Adding to cl…
Browse files Browse the repository at this point in the history
…ass.
  • Loading branch information
petergoldstein committed Oct 27, 2021
1 parent 45236d9 commit 9a33459
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/dalli/socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a33459

Please sign in to comment.