Skip to content

Commit 2346df2

Browse files
committed
exponential backoff retries on http connection failures
1 parent eb34677 commit 2346df2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opamp-client/src/main/java/io/opentelemetry/opamp/client/internal/request/service/HttpRequestService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,14 @@ private void doSendRequest() {
161161
}
162162
} catch (IOException | InterruptedException | TimeoutException e) {
163163
getCallback().onConnectionFailed(e);
164+
connectionStatus.retryAfter(null);
164165
} catch (ExecutionException e) {
165166
if (e.getCause() != null) {
166167
getCallback().onConnectionFailed(e.getCause());
167168
} else {
168169
getCallback().onConnectionFailed(e);
169170
}
171+
connectionStatus.retryAfter(null);
170172
}
171173
}
172174

0 commit comments

Comments
 (0)