зеркало из https://github.com/github/ruby.git
* lib/drb/ssl.rb: close accepted TCP socket if SSL accept is failed.
[ruby-dev:45541] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5849614d02
Коммит
cc19bcf11f
|
@ -1,3 +1,8 @@
|
|||
Sun Apr 22 07:51:29 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/drb/ssl.rb: close accepted TCP socket if SSL accept is failed.
|
||||
[ruby-dev:45541]
|
||||
|
||||
Sat Apr 21 14:36:49 2012 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/rinda/test_rinda.rb: fix sticks on some tests problem
|
||||
|
|
|
@ -177,7 +177,11 @@ module DRb
|
|||
break if (@acl ? @acl.allow_socket?(soc) : true)
|
||||
soc.close
|
||||
end
|
||||
begin
|
||||
ssl = @config.accept(soc)
|
||||
ensure
|
||||
soc.close if $!
|
||||
end
|
||||
self.class.new(uri, ssl, @config, true)
|
||||
rescue OpenSSL::SSL::SSLError
|
||||
warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if @config[:verbose]
|
||||
|
|
Загрузка…
Ссылка в новой задаче