Skip to content

Commit

Permalink
JSSE: skip setting socket to null in Input/OutputStream.close(), so r…
Browse files Browse the repository at this point in the history
…ead/write() can detect closure
  • Loading branch information
cconlon committed Nov 21, 2024
1 parent c2cb3e1 commit 7a90f5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/java/com/wolfssl/provider/jsse/WolfSSLSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,6 @@ protected void close(boolean closeSocket) throws IOException {
}
}

this.socket = null;
this.isClosed = true;

/* Reset "is closing" state to false, now closed */
Expand Down Expand Up @@ -2660,7 +2659,6 @@ protected void close(boolean closeSocket) throws IOException {
}
}

this.socket = null;
this.isClosed = true;

/* Reset "is closing" state to false, now closed */
Expand Down

0 comments on commit 7a90f5b

Please sign in to comment.