swift/swift/common
Christian Schwede 3cf71401be Increase httplib._MAXHEADERS
Python 2.7.9+ and 3.2.6+ limits the number of maximum headers in httplib to 100
[1,2,3]. This setting is too low for Swift.

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.

[1] https://bugs.python.org/issue16037
[2] https://hg.python.org/cpython/raw-file/15c95b7d81dc/Misc/NEWS
[3] https://hg.python.org/cpython/raw-file/v3.2.6/Misc/NEWS

Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Co-Authored-By: Matthew Oliver <matt@oliver.net.au>
Co-Authored-By: Thomas Herve <therve@redhat.com>

Cherry picked from commit edfca861b6

Conflicts:
	swift/common/constraints.py
	test/functional/__init__.py
	test/functional/swift_test_client.py
	test/unit/proxy/test_server.py

Change-Id: I388fd697ec88476024b0e9f1ae75ba35ff765282
2015-07-01 14:39:29 +02:00
..
middleware Merge "updated hacking rules" 2014-10-03 01:47:40 +00:00
ring Merge "Provides proper error handling on builder unpickle" 2014-10-04 01:31:00 +00:00
__init__.py Start using Hacking 2013-07-15 11:41:58 +02:00
bufferedhttp.py Increase httplib._MAXHEADERS 2015-07-01 14:39:29 +02:00
constraints.py Increase httplib._MAXHEADERS 2015-07-01 14:39:29 +02:00
container_sync_realms.py New container sync configuration option 2014-01-10 23:48:00 +00:00
daemon.py Revert "Refactor common/utils methods to common/ondisk" 2013-10-07 17:18:09 -04:00
db.py Fix metadata overall limits bug 2014-10-02 22:38:13 +00:00
db_replicator.py Clean up empty account and container partitions directories. 2014-12-04 15:01:47 -08:00
direct_client.py direct_client not passing args between some functions 2014-09-22 12:16:24 +01:00
exceptions.py Provides proper error handling on builder unpickle 2014-09-26 09:44:35 +05:30
http.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
internal_client.py Fix swift-dispersion-populate bug when using SimpleClient class 2014-08-01 14:18:04 +00:00
manager.py Fix up the return value of launch() 2014-09-29 14:49:42 -06:00
memcached.py Fixed Typo - dictonary to dictionary 2014-09-08 17:43:32 -07:00
request_helpers.py Enable object system metadata on PUTs 2014-08-01 16:41:33 -07:00
storage_policy.py Fixes several typos (Swift) 2014-09-18 21:18:50 -07:00
swob.py Reject overly-taxing ranged-GET requests 2014-09-22 17:13:26 +00:00
utils.py Merge "Zero-copy object-server GET responses with splice()" 2014-09-26 15:48:25 +00:00
wsgi.py Let eventlet.wsgi.server log tracebacks when eventlet_debug is enabled 2014-09-15 18:23:32 -07:00