RFR: 8294047: HttpResponseInputStream swallows interrupts [v7]

Darragh Clarke duke at openjdk.org
Thu Dec 1 13:36:57 UTC 2022


> Currently if a `HttpResonseInputStream` gets interrupted while reading it will just swallow the exception and continue,
> 
> This PR changes it to close the stream and throw an IOException, I added a test to cover this which just uses two threads to read the stream then interrupt it.

Darragh Clarke has updated the pull request incrementally with one additional commit since the last revision:

  set interrupt status on thread before throwing exception

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11323/files
  - new: https://git.openjdk.org/jdk/pull/11323/files/b6a09128..6b9be8ad

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11323&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11323&range=05-06

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/11323.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11323/head:pull/11323

PR: https://git.openjdk.org/jdk/pull/11323


More information about the net-dev mailing list