From af637c8c64636a97c468e9126dfdc4575d1826aa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 19 Jan 2010 17:58:01 -0800 Subject: remove unused MAX_HEADER constant This constant hasn't been in active use in our Ruby code for ages now. All HTTP header constraints are defined in the C/Ragel HTTP parser and we have tests for them, so there's no need to repeat ourselves. --- lib/unicorn/const.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 983c5d6..e2256e7 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -16,12 +16,9 @@ module Unicorn # The basic max request size we'll try to read. CHUNK_SIZE=(16 * 1024) - # This is the maximum header that is allowed before a client is booted. The parser detects - # this, but we'd also like to do this as well. - MAX_HEADER=1024 * (80 + 32) - - # Maximum request body size before it is moved out of memory and into a tempfile for reading. - MAX_BODY=MAX_HEADER + # Maximum request body size before it is moved out of memory and into a + # temporary file for reading (112 kilobytes). + MAX_BODY=1024 * 112 # common errors we'll send back ERROR_400_RESPONSE = "HTTP/1.1 400 Bad Request\r\n\r\n" -- cgit v1.2.3-24-ge0c7