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
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
- links to
-
Commit(master)
openjdk/jdk/afb6a0c2
-
Review(master)
openjdk/jdk/28626