summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2014-07-28 18:01:07 -0700
committerAndy McCurdy <andy@andymccurdy.com>2014-07-28 18:01:07 -0700
commitf5d22681895dbb4bf2a84db4543b92e09e538e4c (patch)
treedadd5bfdd9640099e2898db80ce607bbc19e84d8
parenta027fd6266b2b50e0a4c148bfac00c3375db1eb4 (diff)
downloadredis-py-f5d22681895dbb4bf2a84db4543b92e09e538e4c.tar.gz
fix for pipelines when sending large values
-rwxr-xr-xredis/connection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/connection.py b/redis/connection.py
index eb3fba4..2d666fb 100755
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -629,9 +629,9 @@ class Connection(object):
buffer_length = 0
for cmd in commands:
- packed = self.pack_command(*cmd)[0]
- pieces.append(packed)
- buffer_length += len(packed)
+ for chunk in self.pack_command(*cmd):
+ pieces.append(chunk)
+ buffer_length += len(chunk)
if buffer_length > 6000:
output.append(SYM_EMPTY.join(pieces))