From 4f05fb1a3b44f8eab1a9dda26d5b115f33a149cd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 29 Jun 2009 05:27:18 -0700 Subject: configurator: provide stream_input (true|false) option The default is false because some applications were not written to handle partial reads (even though IO#read allows it, not just IO#readpartial). --- lib/unicorn/http_request.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/unicorn/http_request.rb') diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index e25517b..b1cd8ed 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -17,11 +17,6 @@ module Unicorn "rack.version" => [1, 0].freeze, "SCRIPT_NAME" => "".freeze, - # some applications (like Echo) may want to change this to true - # We disable streaming by default since some (arguably broken) - # applications may not ever read the entire body and be confused - # when it receives a response after nothing has been sent to it. - Const::STREAM_INPUT => false, # this is not in the Rack spec, but some apps may rely on it "SERVER_SOFTWARE" => "Unicorn #{Const::UNICORN_VERSION}".freeze } -- cgit v1.2.3-24-ge0c7