Skip to content

Commit 788cf52

Browse files
committed
Refactored the tmp host address and timeout storing and the way to apply them during connect
1 parent d73cd35 commit 788cf52

File tree

5 files changed

+536
-301
lines changed

5 files changed

+536
-301
lines changed

redis/_parsers/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ def on_connect(self, connection):
130130
"Called when the socket connects"
131131
self._sock = connection._sock
132132
timeout = connection.socket_timeout
133-
if connection.tmp_relax_timeout != -1:
134-
timeout = connection.tmp_relax_timeout
135133
self._buffer = SocketBuffer(self._sock, self.socket_read_size, timeout)
136134
self.encoder = connection.encoder
137135

0 commit comments

Comments
 (0)