Integrated: 8294047: HttpResponseInputStream swallows interrupts

Darragh Clarke duke at openjdk.org
Thu Dec 8 01:42:03 UTC 2022


On Wed, 23 Nov 2022 14:21:13 GMT, Darragh Clarke <duke at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 3aa4070d
Author:    Darragh Clarke <Darragh.clarke at oracle.com>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3aa4070d4ca21b9e90388995efbcde318892e25f
Stats:     190 lines in 3 files changed: 188 ins; 0 del; 2 mod

8294047: HttpResponseInputStream swallows interrupts

Reviewed-by: dfuchs, vtewari, jpai

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

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


More information about the net-dev mailing list