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

jvergara
16.52.2007 a5e49f64d040e7a1c04d9ed1a2f7717645779b97
opends/src/server/org/opends/server/util/SetupUtils.java
@@ -272,14 +272,30 @@
       * socket there is already someone listening to the port (is the case
       * of products as Sun DS 6.0).
       */
      Socket s = null;
      try
      {
        new Socket().connect(socketAddress, 1000);
        s = new Socket();
        s.connect(socketAddress, 1000);
        canUseAsPort = false;
      } catch (IOException ioe)
      } catch (Throwable t)
      {
      }
      finally
      {
        if (s != null)
        {
          try
          {
            s.close();
          }
          catch (Throwable t)
          {
          }
        }
      }
    } catch (IOException ex)
    {