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

the documentation for java.net.Socket.shutdownInput()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • docs
    • beta
    • generic
    • generic


      ingrid.yao@Eng 2000-09-12

      In Doc, it only specifies:

           If you read from a socket input stream after invoking
           shutdownInput() on the socket, the stream will return EOF.

      However, it doesn't specify what happens if you are blocked in read()
      and then call shutdownInput(). In general it seems that it causes the
      read() to immediately return EOF and that seems like the behavior one
      would want, in fact the desired behavior and should be so specified.

            jhosunw Jamie Ho (Inactive)
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: