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

HttpResponseInputStream swallows interrupts

    XMLWordPrintable

Details

    • b27
    • generic
    • generic
    • Verified

    Description

      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.


      Attachments

        Issue Links

          Activity

            People

              dclarke Darragh Clarke
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: