summaryrefslogtreecommitdiffstats
path: root/lib/drb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-22 14:10:36 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-22 14:10:36 +0000
commit8aac7cfba1f7c029c3e334ac7a074f378468416b (patch)
treea93a4e77d4e992325cfa1df309d4fc1cecb7eb78 /lib/drb
parent45e99448bfa9d94dc4f39cfa5b2d8159a736aab4 (diff)
downloadruby-8aac7cfba1f7c029c3e334ac7a074f378468416b.tar.gz
ruby-8aac7cfba1f7c029c3e334ac7a074f378468416b.tar.xz
ruby-8aac7cfba1f7c029c3e334ac7a074f378468416b.zip
(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
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/ssl.rb5
1 files changed, 5 insertions, 0 deletions
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