Module: OpenSSL::SSL::Nonblock

Included in:
SSLSocket
Defined in:
lib/1.8/openssl/ssl-internal.rb,
lib/1.9/openssl/ssl-internal.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



81
82
83
84
85
86
# File 'lib/1.8/openssl/ssl-internal.rb', line 81

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