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

HttpServer: allow custom handlers to request that the connection be closed after the exchange.

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b08

      Description

      It could be useful to make it possible for a custom handler to request that the connection be closed after an exchange, by supplying "Connection: close" to the response headers. This can be useful to free up resources in the case where the application's logic knows that the connection will no longer be needed.

      See: https://mail.openjdk.java.net/pipermail/net-dev/2019-January/012162.html
      (and followup: http://mail.openjdk.java.net/pipermail/net-dev/2019-February/012164.html)

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dfuchs Daniel Fuchs
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: