mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
17.59.2007 1cd4490c53b4574f1ff9f3ffc71871dc1cc18ef0
Fix a problem that could prevent the server from starting under certain network
conditions.

OpenDS Issue Number: 1615
2 files modified
14 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 12 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/util/SetupUtils.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -7163,18 +7163,6 @@
          errorMessages.add(message);
        }
        else if (!SetupUtils.canUseAsPort(
            listener.getHost(), listener.getPort()))
        {
          // Cannot use the specified HostPort: log a message and throw an
          // InitializationException.
          int msgID = MSGID_HOST_PORT_CANNOT_BE_USED;
          String message = getMessage(msgID, listener.toString(),
              c.getConnectionHandlerName());
          logError(ErrorLogCategory.CONNECTION_HANDLING,
              ErrorLogSeverity.SEVERE_ERROR, message, msgID);
          errorMessages.add(message);
        }
        else
        {
          usedListeners.add(listener);
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)