We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c3e758 commit bcd12ddCopy full SHA for bcd12dd
stdnet/lib/redis/connection.py
@@ -216,6 +216,7 @@ def execute(self, tried=0):
216
try:
217
self.connection.connect(self)
218
self.send()
219
+ return self.read_response()
220
except (socket.timeout, socket.error):
221
if tried < self.retry:
222
self.connection.disconnect(release_connection=False)
@@ -232,11 +233,7 @@ def read_response(self):
232
233
response = NOT_READY
234
sock = self.connection.sock
235
while response is NOT_READY:
- try:
236
- stream = sock.recv(io.DEFAULT_BUFFER_SIZE)
237
- except:
238
- self.disconnect()
239
- raise
+ stream = sock.recv(io.DEFAULT_BUFFER_SIZE)
240
response = self.parse(stream)
241
return response
242
0 commit comments