Flowdock
method

connect_nonblock

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: 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
Show source
Register or log in to add new notes.