From c60536e5272ae6c410f61842f8c1581ebe83ca38 Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Mon, 26 May 2014 12:02:50 -0700 Subject: only pass explicitly defined or socket_* options to sentinel connections. fixed #483 --- redis/sentinel.py | 57 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/redis/sentinel.py b/redis/sentinel.py index 4320847..0479690 100644 --- a/redis/sentinel.py +++ b/redis/sentinel.py @@ -5,7 +5,7 @@ import weakref from redis.client import StrictRedis from redis.connection import ConnectionPool, Connection from redis.exceptions import ConnectionError, ResponseError, ReadOnlyError -from redis._compat import xrange, nativestr +from redis._compat import iteritems, nativestr, xrange class MasterNotFoundError(ConnectionError): @@ -82,8 +82,6 @@ class SentinelConnectionPool(ConnectionPool): self.connection_kwargs['connection_pool'] = weakref.proxy(self) self.service_name = service_name self.sentinel_manager = sentinel_manager - self.master_address = None - self.slave_rr_counter = None def __repr__(self): return "%s