Skip to content

Commit

Permalink
8339356: Test javax/net/ssl/SSLSocket/Tls13PacketSize.java failed wit…
Browse files Browse the repository at this point in the history
…h java.net.SocketException: An established connection was aborted by the software in your host machine

Co-authored-by: Daniel Jeliński <[email protected]>
Reviewed-by: djelinski
  • Loading branch information
Matthew Donovan and djelinski committed Dec 19, 2024
1 parent 23d6f74 commit f6e7713
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/jdk/javax/net/ssl/SSLSocket/Tls13PacketSize.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ protected void runServerApplication(SSLSocket socket) throws Exception {

sslOS.write(appData);
sslOS.flush();
int drained = 1;
while (drained < appData.length) {
drained += sslIS.read(appData, drained, appData.length - drained);
}
}

/*
Expand Down

0 comments on commit f6e7713

Please sign in to comment.