Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233313

server socket created by LocateRegistry.createRegistry(0) can not be closed

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Fix Understood

      Description

      Registry registry = LocateRegistry.createRegistry(0);
      boolean b = UnicastRemoteObject.unexportObject(registry, true);

      b==true, but the underlying server socket is not closed by unexportObject, which is not right and is a resource leak.

      NOTE: for specific port other than 0, it can be closed by UnicastRemoteObject.unexportObject(registry, true);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mli Hamlin Li
                Reporter:
                mli Hamlin Li
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: