diff --git a/redis/client.py b/redis/client.py index 902ccc9bc2..88cc8a1b40 100755 --- a/redis/client.py +++ b/redis/client.py @@ -400,7 +400,8 @@ def __init__(self, host='localhost', port=6379, charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, - ssl_cert_reqs=None, ssl_ca_certs=None): + ssl_cert_reqs=None, ssl_ca_certs=None, + max_connections=10000): if not connection_pool: if charset is not None: warnings.warn(DeprecationWarning( @@ -418,7 +419,8 @@ def __init__(self, host='localhost', port=6379, 'encoding': encoding, 'encoding_errors': encoding_errors, 'decode_responses': decode_responses, - 'retry_on_timeout': retry_on_timeout + 'retry_on_timeout': retry_on_timeout, + 'max_connections': max_connections } # based on input, setup appropriate connection args if unix_socket_path is not None: