From 1cd4490c53b4574f1ff9f3ffc71871dc1cc18ef0 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 17 May 2007 16:59:51 +0000
Subject: [PATCH] Fix a problem that could prevent the server from starting under certain network conditions.

---
 opends/src/server/org/opends/server/util/SetupUtils.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/SetupUtils.java b/opends/src/server/org/opends/server/util/SetupUtils.java
index 1157329..9719b62 100644
--- a/opends/src/server/org/opends/server/util/SetupUtils.java
+++ b/opends/src/server/org/opends/server/util/SetupUtils.java
@@ -274,7 +274,7 @@
        */
       try
       {
-        new Socket(hostname, port);
+        new Socket().connect(socketAddress, 1000);
         canUseAsPort = false;
 
       } catch (IOException ioe)

--
Gitblit v1.10.0