Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6968351 httpserver clashes with delayed TCP ACKs for low Content-Length
  3. JDK-8331847

Release Note: `HttpServer` No Longer Immediately Sends Response Headers

XMLWordPrintable

      The HTTP server no longer immediately sends response headers if chunked mode is selected or if the response has a body. The previous behavior had the effect of slowing down response times due to delayed acknowledgments on some operating systems. With this change, the headers will be buffered and sent with the response body if one is expected. This should result in improved performance for certain kinds of responses. Note, it is advisable now to always close the HTTP exchange or response body stream to force the sending of the response headers and is required in all cases except where there is no response body.

            michaelm Michael McMahon
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: