diff options
author | David Garcia Quintas <dgq@google.com> | 2015-07-21 15:49:42 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-07-21 15:49:42 -0700 |
commit | 518e3fe700015759cedea57f2e4febf300d57ba7 (patch) | |
tree | 7212175e6a9373f989b879909a88747fe7921bd6 /src/core/channel | |
parent | 40d808ffdc00831fdb31f7ed11610a21854a18ee (diff) |
Fixes for streaming compression.
Diffstat (limited to 'src/core/channel')
-rw-r--r-- | src/core/channel/compress_filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/channel/compress_filter.c b/src/core/channel/compress_filter.c index 14cb3da62d..9b9e82caba 100644 --- a/src/core/channel/compress_filter.c +++ b/src/core/channel/compress_filter.c @@ -174,6 +174,8 @@ static void process_send_ops(grpc_call_element *elem, size_t i; int did_compress = 0; + /* In streaming calls, we need to reset the previously accumulated slices */ + gpr_slice_buffer_reset_and_unref(&calld->slices); for (i = 0; i < send_ops->nops; ++i) { grpc_stream_op *sop = &send_ops->ops[i]; switch (sop->type) { |