Remove received_trailing_metadata since it's no longer used

pull/19868/head
Yash Tibrewal 6 years ago
parent 04fa432831
commit fc76cc0d1e
  1. 2
      src/core/ext/transport/chttp2/transport/internal.h
  2. 2
      src/core/ext/transport/chttp2/transport/parsing.cc

@ -564,8 +564,6 @@ struct grpc_chttp2_stream {
/** Are we buffering writes on this stream? If yes, we won't become writable /** Are we buffering writes on this stream? If yes, we won't become writable
until there's enough queued up in the flow_controlled_buffer */ until there's enough queued up in the flow_controlled_buffer */
bool write_buffering = false; bool write_buffering = false;
/** Has trailing metadata been received. */
bool received_trailing_metadata = false;
/* have we sent or received the EOS bit? */ /* have we sent or received the EOS bit? */
bool eos_received = false; bool eos_received = false;

@ -648,7 +648,6 @@ static grpc_error* init_header_frame_parser(grpc_chttp2_transport* t,
*s->trailing_metadata_available = true; *s->trailing_metadata_available = true;
} }
t->hpack_parser.on_header = on_trailing_header; t->hpack_parser.on_header = on_trailing_header;
s->received_trailing_metadata = true;
} else { } else {
GRPC_CHTTP2_IF_TRACING(gpr_log(GPR_INFO, "parsing initial_metadata")); GRPC_CHTTP2_IF_TRACING(gpr_log(GPR_INFO, "parsing initial_metadata"));
t->hpack_parser.on_header = on_initial_header; t->hpack_parser.on_header = on_initial_header;
@ -657,7 +656,6 @@ static grpc_error* init_header_frame_parser(grpc_chttp2_transport* t,
case 1: case 1:
GRPC_CHTTP2_IF_TRACING(gpr_log(GPR_INFO, "parsing trailing_metadata")); GRPC_CHTTP2_IF_TRACING(gpr_log(GPR_INFO, "parsing trailing_metadata"));
t->hpack_parser.on_header = on_trailing_header; t->hpack_parser.on_header = on_trailing_header;
s->received_trailing_metadata = true;
break; break;
case 2: case 2:
gpr_log(GPR_ERROR, "too many header frames received"); gpr_log(GPR_ERROR, "too many header frames received");

Loading…
Cancel
Save