Module: OpenSSL::SSL::Nonblock

Included in:
SSLSocket
Defined in:
lib/openssl/ssl.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



128
129
130
131
132
133
# File 'lib/openssl/ssl.rb', line 128

def initialize(*args)
  flag = File::NONBLOCK
  flag |= @io.fcntl(Fcntl::F_GETFL) if defined?(Fcntl::F_GETFL)
  @io.fcntl(Fcntl::F_SETFL, flag)
  super
end