diff options
author | Craig Tiller <ctiller@google.com> | 2015-01-13 16:50:09 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-01-13 16:50:09 -0800 |
commit | 44974e6bd8f7498d19e258bc99a15c04bc79735d (patch) | |
tree | b14c34ac9da0c25ed29642ce30bea95b36c0374e /src/core | |
parent | fc84e7b28e4a506393381f874708fee5f5411c91 (diff) |
Only request more data once stream is connected.
Otherwise we can cause segfaults down in the client_channel.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/surface/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 6313fbce02..bb4a0e77c7 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -654,7 +654,7 @@ grpc_call_error grpc_call_start_read(grpc_call *call, void *tag) { } else { call->read_tag = tag; call->have_read = 1; - request_more = 1; + request_more = call->received_start; } } else if (prq_is_empty(&call->prq) && call->received_finish) { finish_call(call); |