+ exec /home/tom/jdk8u242-b08/bin/java -Djavax.net.ssl.keyStore=repro.jks -Djavax.net.ssl.keyStorePassword=abcdef -Djavax.net.ssl.trustStore=repro.jks -Djavax.net.ssl.trustStorePassword=abcdef -jar ./build/libs/ssl-bug-repro.jar client 192.168.1.114 [2020-03-18 16:51:39.349] connected to server, starting write thread [2020-03-18 16:51:39.358] waiting for write thread to get stuck during write() [2020-03-18 16:51:39.359] write thread is now active, you must now start dropping packets to 192.168.1.114 [2020-03-18 16:52:04.927] detected client stuck in write(), attempting socket close [2020-03-18 16:52:04.927] breaking the sync barrier as a precaution [2020-03-18 16:52:04.927] attempting to close the socket java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) at java.net.SocketOutputStream.write(SocketOutputStream.java:155) at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431) at sun.security.ssl.OutputRecord.write(OutputRecord.java:417) at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:879) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:850) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) at java.io.OutputStream.write(OutputStream.java:75) at SSLBugRepro.lambda$client$0(SSLBugRepro.java:128) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [2020-03-18 16:52:04.930] write thread is done [2020-03-18 16:52:04.931] socket has been closed [2020-03-18 16:52:04.932] waiting for write thread to terminate [2020-03-18 16:52:04.933] client is done