Преглед изворни кода

handle closed transport at the end of a read

yang-g пре 10 година
родитељ
комит
759f59a183
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/core/transport/chttp2_transport.c

+ 1 - 1
src/core/transport/chttp2_transport.c

@@ -1136,7 +1136,7 @@ static void recv_data(grpc_exec_ctx *exec_ctx, void *tp, int success) {
     grpc_chttp2_publish_reads(exec_ctx, &t->global, &t->parsing);
     t->parsing_active = 0;
   }
-  if (!success || i != t->read_buffer.count) {
+  if (!success || i != t->read_buffer.count || t->closed) {
     drop_connection(exec_ctx, t);
     read_error_locked(exec_ctx, t);
   } else if (!t->closed) {