diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-09-03 08:37:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-09-03 08:37:00 +0000 |
commit | ff073ab34a10230cc78a4daa3cab2e22bf1fd17d (patch) | |
tree | 20892d26194d8b293a159a054d3bb8a2dee9a1bc | |
parent | 996f672955f4ba4ab0766354c2b281d28d528518 (diff) | |
parent | 4b627327c9cca5d0ddd038cd5b42466945ae1657 (diff) | |
download | python-swiftclient-ff073ab34a10230cc78a4daa3cab2e22bf1fd17d.tar.gz |
Merge "Increase httplib._MAXHEADERS to 256."
-rw-r--r-- | swiftclient/client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index a2d7ada..8466cc5 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -16,7 +16,6 @@ """ OpenStack Swift client library used internally """ - import socket import requests import logging @@ -24,6 +23,7 @@ import warnings from distutils.version import StrictVersion from requests.exceptions import RequestException, SSLError +from six.moves import http_client from six.moves.urllib.parse import quote as _quote from six.moves.urllib.parse import urlparse, urlunparse from time import sleep, time @@ -34,6 +34,9 @@ from swiftclient.exceptions import ClientException from swiftclient.utils import ( LengthWrapper, ReadableToIterable, parse_api_response) +# Defautl is 100, increase to 256 +http_client._MAXHEADERS = 256 + AUTH_VERSIONS_V1 = ('1.0', '1', 1) AUTH_VERSIONS_V2 = ('2.0', '2', 2) AUTH_VERSIONS_V3 = ('3.0', '3', 3) |