Skip to content

Commit

Permalink
JSSE: close client/server SSLSocket in WolfSSLSocketTest.protocolConn…
Browse files Browse the repository at this point in the history
…ectionTestExtendedSocket() correctly after handshake
  • Loading branch information
cconlon committed Apr 25, 2024
1 parent bd5a58f commit 6b859d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,7 @@ private void protocolConnectionTestExtendedSocket(String protocol)
public Void call() throws Exception {
try {
server.startHandshake();
server.close();

} catch (SSLException e) {
System.out.println("\t... failed");
Expand All @@ -2034,6 +2035,7 @@ public Void call() throws Exception {

try {
cs.startHandshake();
cs.close();

} catch (SSLHandshakeException e) {
System.out.println("\t... failed");
Expand All @@ -2042,8 +2044,6 @@ public Void call() throws Exception {

es.shutdown();
serverFuture.get();
cs.close();
server.close();
ss.close();

System.out.println("\t... passed");
Expand Down

0 comments on commit 6b859d8

Please sign in to comment.