Sending empty trailing metadata to a closed stream is ok - it means close this already closed stream

pull/4136/head
Craig Tiller 9 years ago
parent c4bb6e931f
commit e9c216ee23
  1. 3
      src/core/transport/chttp2_transport.c

@ -806,7 +806,8 @@ static void perform_stream_op_locked(
}
if (stream_global->write_closed) {
grpc_chttp2_complete_closure_step(
exec_ctx, &stream_global->send_trailing_metadata_finished, 0);
exec_ctx, &stream_global->send_trailing_metadata_finished,
grpc_metadata_batch_is_empty(op->send_trailing_metadata));
} else if (stream_global->id != 0) {
/* TODO(ctiller): check if there's flow control for any outstanding
bytes before going writable */

Loading…
Cancel
Save