From 18c43b7bd488f0216ce11127158df7084e26cdb4 Mon Sep 17 00:00:00 2001 From: Haoyu Zhang Date: Fri, 19 Jun 2020 15:43:22 -0700 Subject: [PATCH] Clear cancel callback when gRPC eager call returns with state. PiperOrigin-RevId: 317393892 Change-Id: Ife800821494dd4cc2992eec9a5470d989596a6d7 --- .../core/distributed_runtime/rpc/eager/grpc_eager_service_impl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/core/distributed_runtime/rpc/eager/grpc_eager_service_impl.h b/tensorflow/core/distributed_runtime/rpc/eager/grpc_eager_service_impl.h index 924112e0d96..1d65f945f27 100644 --- a/tensorflow/core/distributed_runtime/rpc/eager/grpc_eager_service_impl.h +++ b/tensorflow/core/distributed_runtime/rpc/eager/grpc_eager_service_impl.h @@ -81,6 +81,7 @@ class GrpcEagerServiceImpl : public AsyncServiceInterface { local_impl_.RunComponentFunction(call_opts.get(), &call->request, &call->response, [call, call_opts](const Status& s) { + call->ClearCancelCallback(); call->SendResponse(ToGrpcStatus(s)); }); });