From 0106986b033a91825309add69f5ef92d971a75a4 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.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/LDAPConnection.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPConnection.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPConnection.java
index 726b797..b4897e1 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPConnection.java
+++ b/opendj-sdk/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