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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Alan Bateman
            Reporter:
            Hamlin Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: