Skip to content

Commit 8bfa6f0

Browse files
committed
fix(feature-flagging): handle wrapped HTTP cancellation
1 parent 8576219 commit 8bfa6f0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

products/feature-flagging/feature-flagging-http/src/main/java/datadog/openfeature/internal/http/CdnConfigurationSource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ public TransportResponse fetch(
277277
throw new InterruptedIOException("Feature Flagging HTTP request cancelled");
278278
} catch (final ExecutionException e) {
279279
final Throwable cause = e.getCause();
280+
if (cause instanceof CancellationException) {
281+
throw new InterruptedIOException("Feature Flagging HTTP request cancelled");
282+
}
280283
if (cause instanceof IOException) {
281284
throw (IOException) cause;
282285
}

0 commit comments

Comments
 (0)