From 6f226d9d42676860cdabc1e1c85cb9e9202e8ddd Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 30 May 2014 12:32:48 +0000 Subject: * lib/webrick/server.rb: Use a pipe to detect server shutdown. shutdown() or close() for listening socket is not a reliable. Actually, both doesn't work (doesn't wake up select()) on DragonFly BSD 3.6.2. * test/webrick/utils.rb: :ShutdownSocketWithoutClose is not required now to immediate server shutdown detection. This fixes fd leaks. * test/net/http/utils.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/http/utils.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'test/net') diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb index 592bbd21cc..7110a2432f 100644 --- a/test/net/http/utils.rb +++ b/test/net/http/utils.rb @@ -49,7 +49,6 @@ module TestNetHTTPUtils :Port => 0, :Logger => WEBrick::Log.new(NullWriter.new), :AccessLog => [], - :ShutdownSocketWithoutClose => true, :ServerType => Thread, } server_config[:OutputBufferSize] = 4 if config('chunked') -- cgit v1.2.3