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

TwoStacksPlainDatagramSocketImpl and socket cleaner

    XMLWordPrintable

Details

    • b07
    • Not verified

    Description

      JDK-8195059 updated the socket implementation to use a cleaner, rather than the previous finalizer implementation. Unfortunately the TwoStacksPlainDatagramSocketImpl on Windows, that uses two native file descriptors, may close one or other when binding, or it may in fact close both sockets and create two completely new ones. This is problematic since the cleaner has been registered with the native file descriptors of the original `fd` and `fd1` when the impl was created.

      Attachments

        Issue Links

          Activity

            People

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: