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

jwebserver should set request timeout

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: