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

jwebserver should set request timeout

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 18
    • 18
    • core-libs
    • None
    • b27

    Backports

      Description

        Since jwebserver is configured with a single thread executor it is important to ensure this thread does not block unnecessarily. Unfortunately, any https request to the server causes such a block because the server is waiting for a plaintext http request header block but receives the initial binary handshake message for TLS.

        The "sun.net.httpserver.maxReqTime" system property can be set to limit the time waiting for a request to arrive. Given that the server is only serving static GET requests, a reasonable value to set for this property could be a few seconds.

        Attachments

          Issue Links

            Activity

              People

                jboes Julia Boes (Inactive)
                michaelm Michael McMahon
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: