ruby-changes:48096
From: normal <ko1@a...>
Date: Thu, 19 Oct 2017 08:23:46 +0900 (JST)
Subject: [ruby-changes:48096] normal:r60210 (trunk): webrick: fix up r60172 and r60208
normal 2017-10-19 08:23:33 +0900 (Thu, 19 Oct 2017) New Revision: 60210 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60210 Log: webrick: fix up r60172 and r60208 Thanks to MSP-Greg (Greg L) for helping with this. * lib/webrick/server.rb (start_thread): fix non-local return introduced in r60208 Modified files: trunk/lib/webrick/server.rb Index: lib/webrick/server.rb =================================================================== --- lib/webrick/server.rb (revision 60209) +++ lib/webrick/server.rb (revision 60210) @@ -294,13 +294,13 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/server.rb#L294 raise end if sock.respond_to?(:sync_close=) && @config[:SSLStartImmediately] - WEBrick::Utils.timeout(@config[:RequestTimeout]) do - begin + begin + WEBrick::Utils.timeout(@config[:RequestTimeout]) do sock.accept # OpenSSL::SSL::SSLSocket#accept - rescue Errno::ECONNRESET, Errno::ECONNABORTED, - Errno::EPROTO, Errno::EINVAL - return end + rescue Errno::ECONNRESET, Errno::ECONNABORTED, + Errno::EPROTO, Errno::EINVAL + return end end call_callback(:AcceptCallback, sock) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/