Module: OpenSSL::SSL::Nonblock

Included in:
SSLSocket
Defined in:
lib/extensions/openssl/openssl/ssl-internal.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



79
80
81
82
83
84
85
86
87
# File 'lib/extensions/openssl/openssl/ssl-internal.rb', line 79

def initialize(*args)
  require "fcntl"
  flag = File::NONBLOCK
  if (System::get_property('platform') != 'WINDOWS_DESKTOP') && !Rho::System.isRhoSimulator
    flag |= @io.fcntl(Fcntl::F_GETFL) if defined?(Fcntl::F_GETFL)
  end
  @io.fcntl(Fcntl::F_SETFL, flag)
  super
end