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

sun/net/www/http/HttpClient.java misuses BufferedInputStream

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      The method available() in sun/net/www/http/HttpClient.java will empty the input buffer of the socket, up to the BufferedInputStream capacity, the return true unless EOF was reached.
      But if anything is read of the socket, `available()` should probably returns false.

        Attachments

          Activity

            People

            Assignee:
            dfuchs Daniel Fuchs
            Reporter:
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: