SocketInputStream.read throws SocketException instead of returning -1 when input shutdown

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: core-libs
    • None
    • b27

      If you read from a Socket input stream after invoking shutdownInput then the read methods is specified to return EOF. With virtual threads, on Windows, it will sometimes fail with:

      java.net.SocketException: A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: