From 8aac7cfba1f7c029c3e334ac7a074f378468416b 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 a1395351f..a35be03dd 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