Skip to content

Commit

Permalink
Intermittent L0_decoupled_grpc_error crash fixed. (#7552) (#7554)
Browse files Browse the repository at this point in the history
Co-authored-by: Indrajit Bhosale <[email protected]>
  • Loading branch information
mc-nv and indrajit96 authored Aug 21, 2024
1 parent e5718ac commit a716d6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/grpc/infer_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,11 @@ class InferHandlerState {

bool IsCancelled()
{
return received_notification_ ? ctx_->IsCancelled() : false;
std::lock_guard<std::recursive_mutex> lock(mu_);
return received_notification_
? (ctx_->IsCancelled() ||
gRPCErrorTracker_->CheckAndUpdateGRPCError())
: false;
}

// Increments the ongoing request counter
Expand Down

0 comments on commit a716d6d

Please sign in to comment.