summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Shea <rshea@yieldbot.com>2013-12-17 16:45:05 -0500
committerRichard Shea <rshea@yieldbot.com>2013-12-17 16:45:10 -0500
commit0baab568c2526520f28c08433c59d1604e4719e5 (patch)
treee1c1c110c644973786307ef1b11f8f9f1cd677d6
parente091c88bb81c5bdeb2da0ff36bb53763c8559984 (diff)
downloadredis-py-0baab568c2526520f28c08433c59d1604e4719e5.tar.gz
this issue fixes #413
connections that have gotten a mismatch number of responses to requests in a pipeline should be disconnected
-rw-r--r--redis/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 4071d32..afa512a 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -2061,6 +2061,7 @@ class BasePipeline(object):
response.insert(i, e)
if len(response) != len(commands):
+ self.connection.disconnect()
raise ResponseError("Wrong number of response items from "
"pipeline execution")