Project

General

Profile

Feature #11190 ยป 0001-ext-openssl-lib-openssl-ssl.rb-use-io-nonblock-inste.patch

normalperson (Eric Wong), 05/27/2015 08:16 PM

View differences:

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
-
    (1-1/1)