From a04281ff0e3f1dc0f6584102b94f88403ff35520 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Tue, 18 Dec 2007 14:43:03 +0000 Subject: * lib/webrick/server.rb (WEBrick::GenericServer#accept_client): should rescue Errno::EINVAL from TCPServer#accept. this exception might occur if the server socket is not in ready to listen. * lib/webrick/server.rb (WEBrick::GenericServer#accept_client): don't call TCPServer#close if the :ShutdownSocketWithoutClose is set. * lib/webrick/config.rb (WEBrick::Config::General): add new parameter :ShutdownSocketWithoutClose. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/config.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/webrick/config.rb') diff --git a/lib/webrick/config.rb b/lib/webrick/config.rb index 10db6e0944..121669c13a 100644 --- a/lib/webrick/config.rb +++ b/lib/webrick/config.rb @@ -34,6 +34,7 @@ module WEBrick :StopCallback => nil, :AcceptCallback => nil, :DoNotReverseLookup => nil, + :ShutdownSocketWithoutClose => false, } # for HTTPServer, HTTPRequest, HTTPResponse ... -- cgit v1.2.3