Skip to content

Commit

Permalink
Fix retries that timeout hanging forever. (grpc#10855)
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-safran committed Feb 1, 2024
1 parent fa36269 commit 880def8
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 880def8

Please sign in to comment.