Skip to content

Commit

Permalink
Fix retries that timeout hanging forever.
Browse files Browse the repository at this point in the history
Fixes #10336
  • Loading branch information
larry-safran committed Jan 27, 2024
1 parent 8e1cc94 commit 50fbd32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/main/java/io/grpc/internal/RetriableStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ public void run() {
}
}
if (retryFuture != null) {
retryFuture.cancel(false);
boolean cancelled = retryFuture.cancel(false);
if (cancelled) {
inFlightSubStreams.decrementAndGet();
}
}
if (hedgingFuture != null) {
hedgingFuture.cancel(false);
Expand Down

0 comments on commit 50fbd32

Please sign in to comment.