Add comment

pull/23558/head
Yash Tibrewal 5 years ago
parent edf3d5e589
commit 18763aa864
  1. 4
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@ -2095,6 +2095,10 @@ void grpc_chttp2_cancel_stream(grpc_chttp2_transport* t, grpc_chttp2_stream* s,
}
if (due_to_error != GRPC_ERROR_NONE && !s->seen_error) {
s->seen_error = true;
/* We are setting the fake status here instead of in
* grpc_chttp2_mark_stream_closed to handle the case where the stream is
* read and write closed, but not all callbacks have been made possibly due
* to pending data. */
grpc_chttp2_fake_status(t, s, GRPC_ERROR_REF(due_to_error));
}
grpc_chttp2_mark_stream_closed(t, s, 1, 1, due_to_error);

Loading…
Cancel
Save