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

HttpClient doesn't handle 102 or 103 properly

XMLWordPrintable

    • b17
    • Verified

        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.

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

                Created:
                Updated:
                Resolved: