From 0805616b06da98448c8810272ac542939670a223 Mon Sep 17 00:00:00 2001 From: seki Date: Sat, 22 Jan 2005 14:10:36 +0000 Subject: (accept) rescue SSLError. [druby-ja:110] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/drb/ssl.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/drb') diff --git a/lib/drb/ssl.rb b/lib/drb/ssl.rb index a1395351f5..a35be03dd8 100644 --- a/lib/drb/ssl.rb +++ b/lib/drb/ssl.rb @@ -171,6 +171,7 @@ module DRb end def accept + begin while true soc = @socket.accept break if (@acl ? @acl.allow_socket?(soc) : true) @@ -178,6 +179,10 @@ module DRb end ssl = @config.accept(soc) self.class.new(uri, ssl, @config, true) + rescue OpenSSL::SSL::SSLError + warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if verbose + retry + end end end -- cgit v1.2.3