Flowdock
method

accept_nonblock

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: SSLSocket
accept_nonblock() public

initiate the TLS/SSL handshake as a server in non-blocking manner.

# emulates blocking accept
begin
  ssl.accept_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.