diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2014-07-28 18:01:07 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2014-07-28 18:01:07 -0700 |
commit | f5d22681895dbb4bf2a84db4543b92e09e538e4c (patch) | |
tree | dadd5bfdd9640099e2898db80ce607bbc19e84d8 | |
parent | a027fd6266b2b50e0a4c148bfac00c3375db1eb4 (diff) | |
download | redis-py-f5d22681895dbb4bf2a84db4543b92e09e538e4c.tar.gz |
fix for pipelines when sending large values
-rwxr-xr-x | redis/connection.py | 6 |
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)) |