remove check socket closed check
parent
b0e7bf31f8
commit
ab159d4108
|
@ -1299,15 +1299,13 @@ public class WolfSSLSocket extends SSLSocket {
|
||||||
"Handshake attempt failed in SSLSocket.getSession()");
|
"Handshake attempt failed in SSLSocket.getSession()");
|
||||||
|
|
||||||
/* close SSLSocket */
|
/* close SSLSocket */
|
||||||
if (this.socket != null && !this.socket.isClosed()) {
|
|
||||||
try {
|
try {
|
||||||
close();
|
close();
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
|
WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO,
|
||||||
"close attempt failed in SSLSocket.getSession(): " +
|
"close attempt failed in SSLSocket.getSession(): " + ex);
|
||||||
ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return invalid session object with cipher suite
|
/* return invalid session object with cipher suite
|
||||||
* "SSL_NULL_WITH_NULL_NULL" */
|
* "SSL_NULL_WITH_NULL_NULL" */
|
||||||
return new WolfSSLImplementSSLSession(this.authStore);
|
return new WolfSSLImplementSSLSession(this.authStore);
|
||||||
|
|
Loading…
Reference in New Issue