fixed 1.8 compatibility bug for OpenSSL::SSL::SSLSocket#read_nonblock vs #readpartial

tested in 1.8 and 2.0
This commit is contained in:
chrislee35 2013-07-02 22:16:01 +09:00
parent 73af324a3a
commit eee946d2cf
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,16 @@ require 'digest/md5'
require 'digest/sha1'
require 'base64'
unless OpenSSL::SSL::SSLSocket.instance_methods.index("read_nonblock")
module OpenSSL
module SSL
class SSLSocket
alias :read_nonblock :readpartial
end
end
end
end
class EClose < Exception
end