about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-19 17:58:01 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-19 18:31:35 -0800
commitaf637c8c64636a97c468e9126dfdc4575d1826aa (patch)
treedf70d839faa22e585a112b8efed85bee86565c41 /lib
parent00ff46894fa71278b11ef689f463d5c88752bda2 (diff)
downloadunicorn-af637c8c64636a97c468e9126dfdc4575d1826aa.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/const.rb9
1 files 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"