diff options
-rw-r--r-- | test/net/http/test_https.rb | 97 | ||||
-rw-r--r-- | test/net/http/utils.rb | 19 |
2 files changed, 113 insertions, 3 deletions
@@ -0,0 +1,97 @@ @@ -1,4 +1,9 @@ require 'webrick' require 'webrick/httpservlet/abstract' module TestNetHTTPUtils @@ -35,14 +40,22 @@ module TestNetHTTPUtils end def spawn_server - @server = WEBrick::HTTPServer.new( :BindAddress => config('host'), :Port => config('port'), :Logger => WEBrick::Log.new(NullWriter.new), :AccessLog => [], :ShutdownSocketWithoutClose => true, - :ServerType => Thread - ) @server.mount('/', Servlet) @server.start n_try_max = 5 |