From f0d51882b921075f5309ed6ff07385dc6103d4dc Mon Sep 17 00:00:00 2001 From: Charles Hsu Date: Wed, 5 Aug 2015 22:09:40 +0800 Subject: [PATCH] Add extra_header_count to document and config. Change-Id: Iec86b488d71553c295afe7098822ce2046df9546 --- doc/source/deployment_guide.rst | 7 +++++++ etc/swift.conf-sample | 2 +- test/sample.conf | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/source/deployment_guide.rst b/doc/source/deployment_guide.rst index 6969a331c1..5813f5d9bb 100644 --- a/doc/source/deployment_guide.rst +++ b/doc/source/deployment_guide.rst @@ -390,6 +390,13 @@ max_header_size 8192 max_header_size is the max number of bytes in See also include_service_catalog in proxy-server.conf-sample (documented in overview_auth.rst). +extra_header_count 0 By default the maximum number of allowed + headers depends on the number of max + allowed metadata settings plus a default + value of 32 for regular http headers. + If for some reason this is not enough (custom + middleware for example) it can be increased + with the extra_header_count constraint. =================== ========== ============================================= --------------------------- diff --git a/etc/swift.conf-sample b/etc/swift.conf-sample index 76d1e876ae..18cb047cf5 100644 --- a/etc/swift.conf-sample +++ b/etc/swift.conf-sample @@ -134,7 +134,7 @@ default = yes # headers. If for some reason this is not enough (custom middleware for # example) it can be increased with the extra_header_count constraint. -#extra_header_count = 32 +#extra_header_count = 0 # max_object_name_length is the max number of bytes in the utf8 encoding diff --git a/test/sample.conf b/test/sample.conf index d1aa030401..3cf3609e59 100644 --- a/test/sample.conf +++ b/test/sample.conf @@ -93,6 +93,7 @@ fake_syslog = False #max_meta_count = 90 #max_meta_overall_size = 4096 #max_header_size = 8192 +#extra_header_count = 0 #max_object_name_length = 1024 #container_listing_limit = 10000 #account_listing_limit = 10000