From 6be9f613b41fe41f3d301672b28c02b6268c55e1 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Fri, 20 Dec 2019 11:59:16 -0800 Subject: [PATCH] Extra logging with Truncated message on read closed --- src/core/ext/transport/chttp2/transport/chttp2_transport.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index 5852f5582e0..72e7c88aa65 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -3008,8 +3008,8 @@ void Chttp2IncomingByteStream::NextLocked(void* arg, } } else if (s->read_closed) { if (bs->remaining_bytes_ != 0) { - s->byte_stream_error = - GRPC_ERROR_CREATE_FROM_STATIC_STRING("Truncated message"); + s->byte_stream_error = GRPC_ERROR_CREATE_REFERENCING_FROM_STATIC_STRING( + "Truncated message", &s->read_closed_error, 1); grpc_core::ExecCtx::Run(DEBUG_LOCATION, bs->next_action_.on_complete, GRPC_ERROR_REF(s->byte_stream_error)); if (s->data_parser.parsing_frame != nullptr) {