From 3fecb24c555f45bac9110cd4a5947de91f11a78b Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 31 Aug 2015 16:38:58 -0700 Subject: Add a little experiment --- src/core/surface/call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/surface/call.c b/src/core/surface/call.c index f25ef74a92..a8b4d65fbc 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -641,7 +641,9 @@ static void unlock(grpc_call *call) { op.max_recv_bytes = MAX_RECV_PEEK_AHEAD - buffered_bytes; } } - if (op.max_recv_bytes != 0) { + /* TODO(ctiller): 1024 is basically to cover a bug + I don't understand yet */ + if (op.max_recv_bytes > 1024) { op.recv_ops = &call->recv_ops; op.recv_state = &call->recv_state; op.on_done_recv = &call->on_done_recv; -- cgit v1.2.3