From b73d91e6235f2c83cb768268a6661b88cdc96d4c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 24 Oct 2013 23:25:47 +0000 Subject: implement + test Expect: 100-continue handling This should speed up out-of-the-box performance with curl as well as allow input_buffering :lazy/true users to reject requests they don't like. --- test/server_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/server_helper.rb') diff --git a/test/server_helper.rb b/test/server_helper.rb index 7a64618..aeb0dc9 100644 --- a/test/server_helper.rb +++ b/test/server_helper.rb @@ -70,4 +70,12 @@ module ServerHelper @err = tmpfile(%w(srv .err)) @ru = nil end + + def mkserver(cfg) + fork do + srv = Yahns::Server.new(cfg) + ENV["YAHNS_FD"] = @srv.fileno.to_s + srv.start.join + end + end end -- cgit v1.2.3-24-ge0c7