|author||Eric Wong <firstname.lastname@example.org>||2010-01-19 17:58:01 -0800|
|committer||Eric Wong <email@example.com>||2010-01-19 18:31:35 -0800|
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.
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb
index 983c5d6..e2256e7 100644
@@ -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.
+ # 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"