Feature #11190 ยป 0001-ext-openssl-lib-openssl-ssl.rb-use-io-nonblock-inste.patch
ext/openssl/lib/openssl/ssl.rb | ||
---|---|---|
=end
|
||
require "openssl/buffering"
|
||
require "fcntl"
|
||
require "io/nonblock"
|
||
module OpenSSL
|
||
module SSL
|
||
... | ... | |
module Nonblock
|
||
def initialize(*args)
|
||
flag = File::NONBLOCK
|
||
flag |= @io.fcntl(Fcntl::F_GETFL) if defined?(Fcntl::F_GETFL)
|
||
@io.fcntl(Fcntl::F_SETFL, flag)
|
||
@io.nonblock = true if @io.respond_to?(:nonblock=)
|
||
super
|
||
end
|
||
end
|
||
-
|