diff options
author | Richard Shea <rshea@yieldbot.com> | 2013-12-17 16:45:05 -0500 |
---|---|---|
committer | Richard Shea <rshea@yieldbot.com> | 2013-12-17 16:45:10 -0500 |
commit | 0baab568c2526520f28c08433c59d1604e4719e5 (patch) | |
tree | e1c1c110c644973786307ef1b11f8f9f1cd677d6 | |
parent | e091c88bb81c5bdeb2da0ff36bb53763c8559984 (diff) | |
download | redis-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.py | 1 |
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") |