Flowdock
method

accept_nonblock

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

Initiates the SSL/TLS 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.