Close the socket on SSLError. [ruby-core:7198]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52c034aecb
commit
050f637941
@ -180,6 +180,7 @@ module DRb
|
|||||||
ssl = @config.accept(soc)
|
ssl = @config.accept(soc)
|
||||||
self.class.new(uri, ssl, @config, true)
|
self.class.new(uri, ssl, @config, true)
|
||||||
rescue OpenSSL::SSL::SSLError
|
rescue OpenSSL::SSL::SSLError
|
||||||
|
soc.close
|
||||||
warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if @config[:verbose]
|
warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if @config[:verbose]
|
||||||
retry
|
retry
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user