method

connect_nonblock

Importance_1
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
Show source
Register or log in to add new notes.