Project

General

Profile

Bug #14013 » webrick.patch

MSP-Greg (Greg L), 10/17/2017 03:48 PM

View differences:

lib/webrick/server.rb
end
if sock.respond_to?(:sync_close=) && @config[:SSLStartImmediately]
WEBrick::Utils.timeout(@config[:RequestTimeout]) do
# we must call OpenSSL::SSL::SSLSocket#accept_nonblock until
# it stop returning wait_* symbols:
# we must call OpenSSL::SSL::SSLSocket#accept_nonblock until it
# stops returning wait_* symbols
# accept_nonblock can only be called once on Windows
case ret = sock.accept_nonblock(exception: false)
when :wait_readable, :wait_writable
sock.to_io.__send__(ret)
break if /mingw|mswin/ =~ RUBY_PLATFORM
else
break
end while true
(3-3/4)