lib/celluloid/io/ssl_socket.rb in celluloid-io-0.16.0 vs lib/celluloid/io/ssl_socket.rb in celluloid-io-0.16.1
- old
+ new
@@ -15,9 +15,10 @@
@socket = OpenSSL::SSL::SSLSocket.new(::IO.try_convert(io), @context)
end
def connect
@socket.connect_nonblock
+ self
rescue ::IO::WaitReadable
wait_readable
retry
end