summaryrefslogtreecommitdiff
path: root/src/HttpHeaderProcessor.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-23 13:02:09 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-23 13:02:09 +0000
commit522ab21ebf713fec032a4e71e259d00f285bff9d (patch)
tree4c331e3d779ba67b17f1eabbf601537a2b5cdd84 /src/HttpHeaderProcessor.cc
parentbd3098faf49eabf718cd7fcae4bba30c2fda2b81 (diff)
2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Redefined the maximum length of buffer used for HTTP header. * src/HttpHeaderProcessor.cc
Diffstat (limited to 'src/HttpHeaderProcessor.cc')
-rw-r--r--src/HttpHeaderProcessor.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc
index 79078136..19ff3eca 100644
--- a/src/HttpHeaderProcessor.cc
+++ b/src/HttpHeaderProcessor.cc
@@ -46,7 +46,13 @@
namespace aria2 {
-HttpHeaderProcessor::HttpHeaderProcessor():_limit(4096) {}
+HttpHeaderProcessor::HttpHeaderProcessor():
+ _limit(21/*lines*/*8190/*per line*/) {}
+// The above values come from Apache's documentation
+// http://httpd.apache.org/docs/2.2/en/mod/core.html: See
+// LimitRequestFieldSize and LimitRequestLine directive. Also the
+// page states that the number of request fields rarely exceeds 20.
+// aria2 uses this class in both client and server side.
HttpHeaderProcessor::~HttpHeaderProcessor() {}