mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
(accept) rescue SSLError. [druby-ja:110]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b0b6e67394
commit
0805616b06
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Jan 22 22:59:08 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110]
|
||||||
|
|
||||||
Sat Jan 22 22:27:28 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Sat Jan 22 22:27:28 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* lib/drb/unix.rb: fail if UNIXFileOwner is set. [druby-ja:111]
|
* lib/drb/unix.rb: fail if UNIXFileOwner is set. [druby-ja:111]
|
||||||
|
|
|
@ -171,6 +171,7 @@ module DRb
|
||||||
end
|
end
|
||||||
|
|
||||||
def accept
|
def accept
|
||||||
|
begin
|
||||||
while true
|
while true
|
||||||
soc = @socket.accept
|
soc = @socket.accept
|
||||||
break if (@acl ? @acl.allow_socket?(soc) : true)
|
break if (@acl ? @acl.allow_socket?(soc) : true)
|
||||||
|
@ -178,6 +179,10 @@ module DRb
|
||||||
end
|
end
|
||||||
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
|
||||||
|
warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if verbose
|
||||||
|
retry
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue