Skip to content

Commit 0a454ac

Browse files
committed
Add Solr search core socket timeout config
1 parent 08b86fa commit 0a454ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dspace-api/src/main/java/org/dspace/discovery/SolrSearchCore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ protected void initSolr() {
8383
log.debug("Solr URL: {}", solrService);
8484
HttpSolrClient solrServer = new HttpSolrClient.Builder(solrService)
8585
.withHttpClient(httpConnectionPoolService.getClient())
86+
.withSocketTimeout(
87+
configurationService.getIntProperty("discovery.solr.socketTimeout", 120000)
88+
)
8689
.build();
8790

8891
solrServer.setBaseURL(solrService);

0 commit comments

Comments
 (0)