summaryrefslogtreecommitdiff
path: root/ext/openssl/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/lib')
-rw-r--r--ext/openssl/lib/openssl/ssl.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb
index 8fba3ee369..1e398fc468 100644
--- a/ext/openssl/lib/openssl/ssl.rb
+++ b/ext/openssl/lib/openssl/ssl.rb
@@ -166,13 +166,6 @@ module OpenSSL
end
end
- module Nonblock
- def initialize(*args)
- @io.nonblock = true if @io.respond_to?(:nonblock=)
- super
- end
- end
-
def verify_certificate_identity(cert, hostname)
should_verify_common_name = true
cert.extensions.each{|ext|
@@ -260,7 +253,6 @@ module OpenSSL
class SSLSocket
include Buffering
include SocketForwarder
- include Nonblock
if ExtConfig::OPENSSL_NO_SOCK
def initialize(io, ctx = nil); raise NotImplmentedError; end
@@ -293,6 +285,7 @@ module OpenSSL
@context = context
@sync_close = false
@hostname = nil
+ @io.nonblock = true if @io.respond_to?(:nonblock=)
context.setup
super()
end