Module: OpenSSL::SSL::Nonblock

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

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object


89
90
91
92
93
94
# File 'lib/openssl/ssl.rb', line 89

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