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

Commit b0e1e76

Browse files
committed
fix connection leak
1 parent 6504223 commit b0e1e76

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rediscluster/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ def _execute_command(self, *args, **kwargs):
605605
slot,
606606
self.read_from_replicas and (command in self.READ_COMMANDS)
607607
)
608-
is_read_replica = node['server_type'] == 'slave'
609608

610609
connection = self.connection_pool.get_connection_by_node(node)
611610

rediscluster/pipeline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def _send_cluster_commands(self, stack, raise_on_error=True, allow_redirections=
214214
connection = connection_by_node[node_name]
215215
else:
216216
connection = self.connection_pool.get_connection_by_node(node)
217+
connection_by_node[node_name] = connection
217218
nodes[node_name] = NodeCommands(self.parse_response, connection)
218219

219220
nodes[node_name].append(c)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name="redis-py-cluster-patched",
23-
version="2.1.0.999.4",
23+
version="2.1.0.999.5",
2424
description="Library for communicating with Redis Clusters. Built on top of redis-py lib",
2525
long_description=readme + '\n\n' + history,
2626
long_description_content_type="text/markdown",
@@ -30,7 +30,7 @@
3030
maintainer_email='Grokzen@gmail.com',
3131
packages=["rediscluster"],
3232
url='http://github.com/grokzen/redis-py-cluster',
33-
download_url="https://github.com/duke-cliff/redis-py-cluster/archive/2.1.0.999.4.tar.gz",
33+
download_url="https://github.com/duke-cliff/redis-py-cluster/archive/2.1.0.999.5.tar.gz",
3434
license='MIT',
3535
install_requires=[
3636
'redis>=3.0.0,<4.0.0'

0 commit comments

Comments
 (0)