Skip to content

Commit 28d8f21

Browse files
authored
opamp exponential backoff retries on http connection failures (#2274)
1 parent 6c01689 commit 28d8f21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)