Skip to content
Snippets Groups Projects
Commit 94a4ed93 authored by Muxi Yan's avatar Muxi Yan
Browse files

Fix the error in flush read that was causing jenkins timeout

parent 41373d04
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
} while (0) } while (0)
/* TODO (makdharma): Hook up into the wider tracing mechanism */ /* TODO (makdharma): Hook up into the wider tracing mechanism */
int grpc_cronet_trace = 0; int grpc_cronet_trace = 1;
enum e_op_result { enum e_op_result {
ACTION_TAKEN_WITH_CALLBACK, ACTION_TAKEN_WITH_CALLBACK,
...@@ -272,7 +272,7 @@ static void maybe_flush_read(stream_obj *s) { ...@@ -272,7 +272,7 @@ static void maybe_flush_read(stream_obj *s) {
/* Whenever the evaluation of any of the two condition is changed, we check /* Whenever the evaluation of any of the two condition is changed, we check
* whether we should enter the flush read state. */ * whether we should enter the flush read state. */
if (s->state.pending_recv_trailing_metadata && s->state.fail_state) { if (s->state.pending_recv_trailing_metadata && s->state.fail_state) {
if (!s->state.flush_read) { if (!s->state.flush_read && !s->state.rs.read_stream_closed) {
CRONET_LOG(GPR_DEBUG, "%p: Flush read", s); CRONET_LOG(GPR_DEBUG, "%p: Flush read", s);
s->state.flush_read = true; s->state.flush_read = true;
null_and_maybe_free_read_buffer(s); null_and_maybe_free_read_buffer(s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment