Project

General

Profile

« Previous | Next » 

Revision 7313

configurable replication client timeout
https://redmine.dataone.org/issues/3078

View differences:

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