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

HttpClient doesn't handle 102 or 103 properly

    XMLWordPrintable

Details

    • b17
    • Verified

    Description

      When the HttpClient receives a response with 102 or 103 it simply returns that response to the caller and considers the exchange done. This leaves the caller in a bind as it can't receive the final 200 response.

      A minimal fix (backportable) would be to ignore the 102 or 103 response and wait for the final 200 response.

      For the mainline we should probably add a new no-op method with an empty default body to the BodyHandler interface to give the caller a chance to intercept the 1xx response.

      Attachments

        Issue Links

          Activity

            People

              jpai Jaikiran Pai
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: