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

SocketInputStream.available() method does not return 0 when it reaches end of file on Linux

XMLWordPrintable

    • generic
    • linux

      SocketInputStream.available() method does not return 0 when it reaches end of
      input stream as it is required by the specification.
      The input stream is received from Socket connected to ServerSocket.
      The Socket shutdownInput() method is invoked.

        Logic:
          Socket->shutdownInput()
          Socket->getInputStream()->available() -> 0 is expected

      However, available() returns positive value.

            chegar Chris Hegarty
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: