Skip to content

Commit df98efd

Browse files
committed
8339356: Test javax/net/ssl/SSLSocket/Tls13PacketSize.java failed with java.net.SocketException: An established connection was aborted by the software in your host machine
Backport-of: f6e7713bb653811423eeb2515c2f69b437750326
1 parent 30b44dd commit df98efd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/jdk/javax/net/ssl/SSLSocket/Tls13PacketSize.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ protected void runServerApplication(SSLSocket socket) throws Exception {
7272

7373
sslOS.write(appData);
7474
sslOS.flush();
75+
int drained = 1;
76+
while (drained < appData.length) {
77+
drained += sslIS.read(appData, drained, appData.length - drained);
78+
}
7579
}
7680

7781
/*

0 commit comments

Comments
 (0)