Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8294047 HttpResponseInputStream swallows interrupts
  3. JDK-8298265

Release Note: HTTP Response Input Streams Will Throw an IOException on Interrupt

XMLWordPrintable

      HTTP Response Input Streams are `InputStream` instances returned by the `ResponseSubscribers::ofInputStream` method.
      In this release, the default implementation of their `read` method was changed to throw an `IOException` if the thread performing this operation is interrupted, instead of ignoring the interruption.

      If the thread invoking the `read` operation is interrupted while blocking on `read`:
      * The request will be cancelled and the `InputStream` will be closed
      * The thread interrupt status will be set to true
      * An IOException will be thrown

            dclarke Darragh Clarke
            dclarke Darragh Clarke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: