From 727d1add5f833dea644d09351d70f542e60a240e Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 21 Feb 2007 01:00:24 +0000
Subject: [PATCH] Change the SO_LINGER setting in the LDAPConnection class to use a timeout of 1 second rather than 0 seconds. It appears that a value of 0 seconds is incompatible with some JVM versions.
---
opends/src/server/org/opends/server/tools/LDAPConnection.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPConnection.java b/opends/src/server/org/opends/server/tools/LDAPConnection.java
index 726b797..b4897e1 100644
--- a/opends/src/server/org/opends/server/tools/LDAPConnection.java
+++ b/opends/src/server/org/opends/server/tools/LDAPConnection.java
@@ -250,7 +250,7 @@
// commands are called A LOT, as in the unit tests.
try
{
- socket.setSoLinger(true, 0);
+ socket.setSoLinger(true, 1);
socket.setReuseAddress(true);
} catch(IOException e)
{
--
Gitblit v1.10.0