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

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

XMLWordPrintable

    • b02

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: