-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 18, 19, 20
-
b27
-
generic
-
generic
-
Verified
A DESCRIPTION OF THE PROBLEM :
On this line:
https://github.com/openjdk/jdk/blob/master/src/java.net.http/share/classes/jdk/internal/net/http/ResponseSubscribers.java#L483
HttpResponseInputStream catches InterruptedException and ignores it. This makes it impossible (?) to interrupt or a cancel a thread that is downloading a file by copying the inputstream to disk. There's no explanation in the code of why the code swallows exceptions in this way.
On this line:
https://github.com/openjdk/jdk/blob/master/src/java.net.http/share/classes/jdk/internal/net/http/ResponseSubscribers.java#L483
HttpResponseInputStream catches InterruptedException and ignores it. This makes it impossible (?) to interrupt or a cancel a thread that is downloading a file by copying the inputstream to disk. There's no explanation in the code of why the code swallows exceptions in this way.
- csr for
-
JDK-8298163 HttpResponseInputStream swallows interrupts
- Closed