JSSE: add close() to WolfSSLServerSocket, closes unerlying WolfSSLSocket if needed which frees resources earlier
parent
65e4191ba4
commit
95777fd653
|
@ -375,5 +375,13 @@ public class WolfSSLServerSocket extends SSLServerSocket {
|
||||||
|
|
||||||
return socket;
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public synchronized void close() throws IOException {
|
||||||
|
if (this.socket != null) {
|
||||||
|
this.socket.close();
|
||||||
|
}
|
||||||
|
super.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue