Skip to content

Commit

Permalink
Fix retries that timeout hanging forever. (#10855)
Browse files Browse the repository at this point in the history
Fixes #10336
  • Loading branch information
larry-safran committed Jan 31, 2024
1 parent 8d280c9 commit c0a9d31
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 c0a9d31

Please sign in to comment.