Fix potential flow control leak

pull/8430/head
Craig Tiller 8 years ago
parent 785c077e98
commit f9540d1611
  1. 6
      src/core/ext/transport/chttp2/transport/parsing.c

@ -398,6 +398,12 @@ static grpc_error *update_incoming_window(grpc_exec_ctx *exec_ctx,
GRPC_CHTTP2_FLOW_DEBIT_STREAM("parse", t, s, incoming_window_delta, GRPC_CHTTP2_FLOW_DEBIT_STREAM("parse", t, s, incoming_window_delta,
incoming_frame_size); incoming_frame_size);
s->received_bytes += incoming_frame_size; s->received_bytes += incoming_frame_size;
} else {
GRPC_CHTTP2_FLOW_CREDIT_TRANSPORT("parse", t, announce_incoming_window,
incoming_frame_size);
GRPC_CHTTP2_FLOW_CREDIT_TRANSPORT("parse", t, incoming_window,
incoming_frame_size);
grpc_chttp2_initiate_write(exec_ctx, t, false, "destroy_stream");
} }
return GRPC_ERROR_NONE; return GRPC_ERROR_NONE;

Loading…
Cancel
Save