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

matthew_swift
10.18.2007 f5b70f15a18045d93b48f193378611b64db8688b
Close the temporary server port before attempting to re-use it in newly created connection handlers. I'm not sure how this ever worked in the past, but it suddenly stopped working for me yesterday.
1 files modified
1 ■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/LdapTestCase.java 1 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/LdapTestCase.java
@@ -164,6 +164,7 @@
      serverLdapSocket.setReuseAddress(true);
      serverLdapSocket.bind(new InetSocketAddress(localHost, 0));
      long serverLdapPort = serverLdapSocket.getLocalPort();
    serverLdapSocket.close();
      Attribute a=new Attribute(ATTR_LISTEN_PORT, String.valueOf(serverLdapPort));
      handlerEntry.addAttribute(a,null);
    LDAPConnectionHandlerCfg config =