Skip to content

Commit

Permalink
Set the interval to the client scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
tflobbe committed Nov 29, 2023
1 parent a910a02 commit 2f7bbf7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private HttpClient createHttpClient(Builder builder) {
&& builder.keyStoreReloadIntervalSecs > 0) {
scanner = new KeyStoreScanner(sslContextFactory);
try {
scanner.setScanInterval((int) Math.min(builder.keyStoreReloadIntervalSecs, Integer.MAX_VALUE));
scanner.start();
if (log.isDebugEnabled()) {
log.debug("Key Store Scanner started");
Expand Down Expand Up @@ -1093,7 +1094,7 @@ public Http2SolrClient build() {
if (keyStoreReloadIntervalSecs != null
&& keyStoreReloadIntervalSecs > 0
&& this.httpClient != null) {
log.warn("keyStoreReloadInterval can't be set when using external httpClient");
log.warn("keyStoreReloadIntervalSecs can't be set when using external httpClient");
keyStoreReloadIntervalSecs = null;
} else if (keyStoreReloadIntervalSecs == null
&& this.httpClient == null
Expand Down

0 comments on commit 2f7bbf7

Please sign in to comment.