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

(se) Selector doesn't block on Selector.select(timeout) (lnx)

    Details

    • Subcomponent:
    • Resolved In Build:
      b02

      Description

      This is an issue with poll (and epoll) on Linux. If a file descriptor for a connected socket is polled with a request event mask of 0, and if the connection is abruptly terminated (RST) then the poll wakes up with the POLLHUP (and maybe POLLERR) bit set in the returned event set. The implication of this behaviour is that Selector will wakeup and as the interest set for the SocketChannel is 0 it means there aren't any selected events and the select method returns 0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vchoudhaorcl Vaibhav Choudhary (Inactive)
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: