Skip to content

Commit

Permalink
Handle inflight request canceling properly (envoyproxy#2053)
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Zhang <[email protected]>
  • Loading branch information
qiwzhang authored and istio-testing committed Dec 7, 2018
1 parent 1bcee08 commit 4ceeb1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/envoy/utils/grpc_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void GrpcTransport<RequestType, ResponseType>::onFailure(
template <class RequestType, class ResponseType>
void GrpcTransport<RequestType, ResponseType>::Cancel() {
ENVOY_LOG(debug, "Cancel gRPC request {}", descriptor().name());
request_->cancel();
delete this;
}

Expand Down

0 comments on commit 4ceeb1e

Please sign in to comment.