method
connect_nonblock
v1_9_3_125 -
Show latest stable
- Class:
OpenSSL::SSL::SSLSocket
connect_nonblock()public
Initiates the SSL/TLS 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