diff options
-rw-r--r-- | Documentation/yahns_config.txt | 5 | ||||
-rw-r--r-- | lib/yahns/http_context.rb | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/yahns_config.txt b/Documentation/yahns_config.txt index db24cad..83a330e 100644 --- a/Documentation/yahns_config.txt +++ b/Documentation/yahns_config.txt @@ -181,9 +181,10 @@ Ruby it is running under. This controls the maximum size of a request body before it is buffered to the filesystem (instead of memory). This has no effect - if input_buffering is false. + if input_buffering is false. This also governs the size of an + individual read(2) system call when reading a request body. - Default: 114688 bytes (112 kilobytes) + Default: 8192 bytes (8 kilobytes) * client_header_buffer_size INTEGER diff --git a/lib/yahns/http_context.rb b/lib/yahns/http_context.rb index 547d41f..651cb08 100644 --- a/lib/yahns/http_context.rb +++ b/lib/yahns/http_context.rb @@ -22,7 +22,7 @@ module Yahns::HttpContext # :nodoc: @yahns_rack = yahns_rack @app_defaults = yahns_rack.app_defaults @check_client_connection = false - @client_body_buffer_size = 112 * 1024 + @client_body_buffer_size = 8 * 1024 @client_header_buffer_size = 4000 @client_max_body_size = 1024 * 1024 # nil => infinity @input_buffering = true |