Revision 7313
Added by ben leinfelder over 12 years ago
lib/metacat.properties | ||
---|---|---|
345 | 345 |
replication.firsttimedreplication=10:00 PM |
346 | 346 |
replication.timedreplicationinterval=172800000 |
347 | 347 |
replication.forcereplicationwaitingtime=30000 |
348 |
replication.client.timeout=60000 |
|
348 | 349 |
# certificate-based replication configuration |
349 | 350 |
replication.certificate.file=/etc/dataone/client/certs/METACAT1.pem |
350 | 351 |
replication.privatekey.file=/etc/dataone/client/certs/METACAT1.pem |
src/edu/ucsb/nceas/metacat/replication/ReplicationService.java | ||
---|---|---|
2081 | 2081 |
// this is pretty much required for replication communication |
2082 | 2082 |
logReplication.warn("Could not find server's client certificate/private key: " + e.getMessage()); |
2083 | 2083 |
} |
2084 |
String clientTimeout = null; |
|
2085 |
try { |
|
2086 |
clientTimeout = PropertyService.getProperty("replication.client.timeout"); |
|
2087 |
int timeoutMs = Integer.parseInt(clientTimeout); |
|
2088 |
client.setTimeouts(timeoutMs); |
|
2089 |
} catch (Exception e) { |
|
2090 |
// just use default |
|
2091 |
logReplication.warn("No custom client timeout specified in configuration, using default." + e.getMessage()); |
|
2092 |
} |
|
2093 |
|
|
2084 | 2094 |
SSLSocketFactory socketFactory = null; |
2085 | 2095 |
try { |
2086 | 2096 |
socketFactory = CertificateManager.getInstance().getSSLSocketFactory(subject); |
Also available in: Unified diff
configurable replication client timeout
https://redmine.dataone.org/issues/3078