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

jwebserver should set request timeout

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: