DNS provider does not cleanup resources properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • 5.0u4
    • Affects Version/s: 5.0u4
    • Component/s: core-libs
    • None

      Short description: com.sun.jndi.dns.DnsContext.close() doesn't work
       
      After starting the program(find the program attached as SocketLeak1.java), run "truss -t so_socket,close -p <pid>" on the Java process that is just started.
      Please find the attached results in the file called "truss_new". As you can see, there are a lot of sockets opened, and then closed. But they are closed by the garbage
      collector, not by the calls to "close()" in the code. A correct
      behavior would show up in the truss log as open/close/open/close/open/close, maybe something like the "truss2" file (the expected behaviour from the customer).

            Assignee:
            Robert Mckenna
            Reporter:
            Lakshmi Sakuntala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: