Module: OpenSSL::SSL::Nonblock

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

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



130
131
132
133
134
135
# File 'lib/jopenssl22/openssl/ssl.rb', line 130

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