Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public enum StackRoxTlsValidationMode {
}

private static final Duration TIMEOUT = Duration.ofSeconds(30);
private static final Duration READ_TIMEOUT = Duration.ofMinutes(10);
private static final int MAXIMUM_CACHE_SIZE = 5; // arbitrary chosen as there are no data to support this decision

@Data
Expand Down Expand Up @@ -100,7 +101,7 @@ private static OkHttpClient newHttpClient(@Nullable String caCert, StackRoxTlsVa
}
builder.retryOnConnectionFailure(true);
builder.connectTimeout(TIMEOUT);
builder.readTimeout(TIMEOUT);
builder.readTimeout(READ_TIMEOUT);
builder.writeTimeout(TIMEOUT);
builder.addNetworkInterceptor(new UserAgentInterceptor());
return builder.build();
Expand Down