From 39f264173717287eda70910e7a24fbafd21a4a7e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Dec 2010 05:45:14 +0800 Subject: unicorn 3.1.0 - client_buffer_body_size tuning This release enables tuning the client_buffer_body_size to raise or lower the threshold for buffering request bodies to disk. This only applies to users who have not disabled rewindable input. There is also a TeeInput bugfix for uncommon usage patterns and Configurator examples in the FAQ should be fixed --- GIT-VERSION-GEN | 2 +- lib/unicorn/configurator.rb | 2 ++ lib/unicorn/const.rb | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index e4e68c5..861c86f 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v3.0.1.GIT +DEF_VER=v3.1.0.GIT LF=' ' diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index a044e5d..d522c54 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -388,6 +388,8 @@ class Unicorn::Configurator # The maximum size (in +bytes+) to buffer in memory before # resorting to a temporary file. Default is 112 kilobytes. + # This option has no effect if "rewindable_input" is set to + # +false+. def client_body_buffer_size(bytes) set_int(:client_body_buffer_size, bytes, 0) end diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 6bccdbc..2010e9d 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -7,8 +7,8 @@ # improve things much compared to constants. module Unicorn::Const - # The current version of Unicorn, currently 3.0.1 - UNICORN_VERSION = "3.0.1" + # The current version of Unicorn, currently 3.1.0 + UNICORN_VERSION = "3.1.0" # default TCP listen host address (0.0.0.0, all interfaces) DEFAULT_HOST = "0.0.0.0" @@ -23,7 +23,8 @@ module Unicorn::Const CHUNK_SIZE = 16 * 1024 # Maximum request body size before it is moved out of memory and into a - # temporary file for reading (112 kilobytes). + # temporary file for reading (112 kilobytes). This is the default + # value of of client_body_buffer_size. MAX_BODY = 1024 * 112 # :stopdoc: -- cgit v1.2.3-24-ge0c7