mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8203937: Not possible to read data from socket after write detects connection reset
Reviewed-by: chegar
This commit is contained in:
parent
ee5ff58a3d
commit
79ed34634b
3 changed files with 142 additions and 11 deletions
|
@ -109,10 +109,6 @@ class SocketOutputStream extends FileOutputStream {
|
|||
try {
|
||||
socketWrite0(fd, b, off, len);
|
||||
} catch (SocketException se) {
|
||||
if (se instanceof sun.net.ConnectionResetException) {
|
||||
impl.setConnectionReset();
|
||||
se = new SocketException("Connection reset");
|
||||
}
|
||||
if (impl.isClosedOrPending()) {
|
||||
throw new SocketException("Socket closed");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue