Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit f19479b

Browse files
committed
Set a default max_connection to 50 in ClusterBlockingConnectionPool to avoid issue where it would create infinite loop when used
Fixes #435
1 parent 7514ec8 commit f19479b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rediscluster/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class ClusterBlockingConnectionPool(ClusterConnectionPool):
420420
"""
421421

422422
def __init__(self, startup_nodes=None, init_slot_cache=True, connection_class=None,
423-
max_connections=None, max_connections_per_node=False, reinitialize_steps=None,
423+
max_connections=50, max_connections_per_node=False, reinitialize_steps=None,
424424
skip_full_coverage_check=False, nodemanager_follow_cluster=False,
425425
timeout=20, **connection_kwargs):
426426
self.timeout = timeout

0 commit comments

Comments
 (0)