JSSE: add close() to WolfSSLServerSocket, closes unerlying WolfSSLSocket if needed which frees resources earlier

pull/189/head
Chris Conlon 2024-04-18 17:17:44 -06:00
parent 65e4191ba4
commit 95777fd653
1 changed files with 8 additions and 0 deletions

View File

@ -375,5 +375,13 @@ public class WolfSSLServerSocket extends SSLServerSocket {
return socket;
}
@Override
public synchronized void close() throws IOException {
if (this.socket != null) {
this.socket.close();
}
super.close();
}
}