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

should check for cases when Net.poll returns POLLHUP, POLLERR or POLLNVAL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • None
    • core-libs
    • None

      Currently, in SocketChannelImpl.java, ServerSocketChannelImpl.java and DatagramChannelImpl.java, pollXXX(pollRead, pollConnected, pollAccept) only check whether return result of Net.poll(...) > 0, it does not check whether it is/includes POLLERR, POLLHUP, POLLNVAL, this will cause bug JDK-8201474.
      The fix of JDK-8201474 is more like a workaround rather than fix the root cause.
      In pollXXX should check further even if Net.poll(...) > 0, in case of POLLERR, POLLHUP, POLLNVAL, completed should be set as false.

            alanb Alan Bateman
            mli Hamlin Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: