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

Selector in HttpServer introduces a 1000 ms delay when using KeepAlive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7, 8
    • core-libs
    • None
    • b91
    • generic
    • generic

    Backports

      Description

        com.sun.net.httpServer uses a selector to get notified for interesting events (such as arrival of a new connection, or data available to read on an existing connection), but imposes a timeout of 1000 ms on the selector. Although this is not a problem when the server uses a threadpool, but for a single threaded server, this timeout gives rise to a bottleneck and should be reduced to a lower value.

        Attachments

          Issue Links

            Activity

              People

                khazra Kurchi Subhra Hazra
                khazra Kurchi Subhra Hazra
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: