method
connect_nonblock
v1_9_2_180 -
Show latest stable
- Class:
OpenSSL::SSL::SSLSocket
connect_nonblock()public
initiate the TLS/SSL handshake as a client in non-blocking manner.
# emulates blocking connect begin ssl.connect_nonblock rescue IO::WaitReadable IO.select([s2]) retry rescue IO::WaitWritable IO.select(nil, [s2]) retry end