mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-19887: Non-responsive SOLR address breaks admin console pages (#126)
- add setter for Socket Timeout
(cherry picked from commit 5609c805d4
)
This commit is contained in:
@@ -249,6 +249,18 @@ public class HttpClientFactory
|
|||||||
this.maxHostConnections = maxHostConnections;
|
this.maxHostConnections = maxHostConnections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the default socket timeout (<tt>SO_TIMEOUT</tt>) in milliseconds which is the
|
||||||
|
* timeout for waiting for data. A timeout value of zero is interpreted as an infinite
|
||||||
|
* timeout.
|
||||||
|
*
|
||||||
|
* @param socketTimeout Timeout in milliseconds
|
||||||
|
*/
|
||||||
|
public void setSocketTimeout(Integer socketTimeout)
|
||||||
|
{
|
||||||
|
this.socketTimeout = socketTimeout;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to connect to a server will timeout after this period (millis).
|
* Attempts to connect to a server will timeout after this period (millis).
|
||||||
* Default is zero (the timeout is not used).
|
* Default is zero (the timeout is not used).
|
||||||
|
Reference in New Issue
Block a user