From 0baab568c2526520f28c08433c59d1604e4719e5 Mon Sep 17 00:00:00 2001 From: Richard Shea Date: Tue, 17 Dec 2013 16:45:05 -0500 Subject: this issue fixes #413 connections that have gotten a mismatch number of responses to requests in a pipeline should be disconnected --- redis/client.py | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v1.2.1