From b4f8838b15342670c31753a484abf0129e3c9653 Mon Sep 17 00:00:00 2001
From: jcduff <jcduff@localhost>
Date: Thu, 23 Oct 2008 14:04:24 +0000
Subject: [PATCH] The commit will bring the following features : - An updated version of the underlying database. BDB JE 3.3 is now used. - Attribute API refactoring providing a better abstraction and offering improved performances. - A new GUI called the Control-Panel to replace the Status-Panel: the specifications for this GUI are available on OpenDS Wiki and contains a link to a mockup. See <https://www.opends.org/wiki/page/ControlPanelUISpecification>. - Some changes in the replication protocol to implement "Assured Replication Mode". The specifications are on OpenDS Wiki at <https://www.opends.org/wiki/page/AssuredMode> and section 7 described some of the replication changes required to support this. Assured Replication is not finished, but the main replication protocol changes to support it are done. As explained by Gilles on an email on the Dev mailing list (http://markmail.org/message/46rgo3meq3vriy4a), with these changes the newer versions of OpenDS may not be able to replicate with OpenDS 1.0 instances. - Support for Service Tags on the platforms where the functionality is available and enabled. Specifications are published at <https://www.opends.org/wiki/page/OpenDSServiceTagEnabled>. For more information on Service Tags see <http://wikis.sun.com/display/ServiceTag/Sun+Service+Tag+FAQ>. - The Admin Connector service. In order to provide agentry of the OpenDS server at any time, a new service has been added, dedicated to the administration, configuration and monitoring of the server. An overview of the Admin Connector service and it's use is available on the OpenDS wiki <https://www.opends.org/wiki/page/ManagingAdministrationTrafficToTheServer> - Updates to the various command line tools to support the Admin Connector service. - Some internal re-architecting of the server to put the foundation of future developments such as virtual directory services. The new NetworkGroups and WorkFlow internal services which have been specified in <https://www.opends.org/wiki/page/BasicOperationRoutingThroughNetworkGroup> are now implemented. - Many bug fixes...
---
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplSessionSecurity.java | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplSessionSecurity.java b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplSessionSecurity.java
index a198d3f..a94d979 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplSessionSecurity.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ReplSessionSecurity.java
@@ -82,6 +82,12 @@
private String sslCipherSuites[];
/**
+ * The default soTimeout value to be used at handshake phases.
+ * (DS<->RS and RS<->RS)
+ */
+ public static final int HANDSHAKE_TIMEOUT = 4000;
+
+ /**
* Create a ReplSessionSecurity instance from the supplied configuration
* values.
*
@@ -192,13 +198,15 @@
* @param serverURL The remote replication server to which the socket is
* connected.
* @param socket The connected socket.
+ * @param soTimeout The socket timeout option to use for the protocol session.
* @return The new protocol session.
* @throws ConfigException If the protocol session could not be established
* due to a configuration problem.
* @throws IOException If the protocol session could not be established
* for some other reason.
*/
- public ProtocolSession createClientSession(String serverURL, Socket socket)
+ public ProtocolSession createClientSession(String serverURL, Socket socket,
+ int soTimeout)
throws ConfigException, IOException
{
boolean useSSL = isSecurePort(serverURL);
@@ -214,6 +222,7 @@
socket.getInetAddress().getHostName(),
socket.getPort(), false);
secureSocket.setUseClientMode(true);
+ secureSocket.setSoTimeout(soTimeout);
if (sslProtocols != null)
{
@@ -240,12 +249,13 @@
* Create a new protocol session in the server role on the provided socket.
* @param socket The connected socket.
* @return The new protocol session.
+ * @param soTimeout The socket timeout option to use for the protocol session.
* @throws ConfigException If the protocol session could not be established
* due to a configuration problem.
* @throws IOException If the protocol session could not be established
* for some other reason.
*/
- public ProtocolSession createServerSession(Socket socket)
+ public ProtocolSession createServerSession(Socket socket, int soTimeout)
throws ConfigException, IOException
{
if (useSSL)
@@ -264,6 +274,7 @@
socket.getPort(), false);
secureSocket.setUseClientMode(false);
secureSocket.setNeedClientAuth(true);
+ secureSocket.setSoTimeout(soTimeout);
if (sslProtocols != null)
{
--
Gitblit v1.10.0