summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2015-11-02 10:53:21 -0800
committerAndy McCurdy <andy@andymccurdy.com>2015-11-02 10:53:21 -0800
commit4001afc9a993a23850f77961f33a4719f40e1f12 (patch)
treeb6a23127305b7d63be585ffa29898182dd66b9e2
parente1e6805815839909f79148d80faa45e72bc038e6 (diff)
downloadredis-py-4001afc9a993a23850f77961f33a4719f40e1f12.tar.gz
max_connections should default to None
-rw-r--r--CHANGES4
-rwxr-xr-xredis/client.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 567e9a6..105da0e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -21,7 +21,9 @@
parsing large responses from the Redis server.
* Added support for ZREVRANGEBYLEX.
* ConnectionErrors are now raised if Redis refuses a connection due to
- the maxclients limit being exceeded.
+ the maxclients limit being exceeded. Thanks Roman Karpovich.
+ * max_connections can now be set when instantiating client instances.
+ Thanks Ohad Perry.
* 2.10.3
* Fixed a bug with the bytearray support introduced in 2.10.2. Thanks
Josh Owen.
diff --git a/redis/client.py b/redis/client.py
index 6c5eaa7..c40662f 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -401,7 +401,7 @@ class StrictRedis(object):
decode_responses=False, retry_on_timeout=False,
ssl=False, ssl_keyfile=None, ssl_certfile=None,
ssl_cert_reqs=None, ssl_ca_certs=None,
- max_connections=10000):
+ max_connections=None):
if not connection_pool:
if charset is not None:
warnings.warn(DeprecationWarning(