JDK-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
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2024-09-01
  • Updated: 2025-04-09
  • Resolved: 2024-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 24 JDK 25 JDK 8
11.0.28-oracleFixed 17.0.15Fixed 21.0.7Fixed 24.0.1Fixed 25 b04Fixed 8u461Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
----------System.out:(20/1566)----------
Server input bytes: 16366
Client died: java.net.SocketException: An established connection was aborted by the software in your host machine
java.net.SocketException: An established connection was aborted by the software in your host machine
	at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
	at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:256)
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:307)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
	at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:1118)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1105)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
	at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
	at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
	at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1461)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1068)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:975)
	at Tls13PacketSize.runClientApplication(Tls13PacketSize.java:97)
	at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:302)
	at SSLSocketTemplate$2.run(SSLSocketTemplate.java:441)
----------System.err:(23/1748)----------
java.net.SocketException: An established connection was aborted by the software in your host machine
	at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
	at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:256)
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:307)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
	at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:1118)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1105)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
	at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
	at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
	at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1461)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1068)
	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:975)
	at Tls13PacketSize.runClientApplication(Tls13PacketSize.java:97)
	at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:302)
	at SSLSocketTemplate$2.run(SSLSocketTemplate.java:441)

See previous issues reported in JDK-8235973
Comments
Fix request [21u,17u] I backport this for parity with 21.0.8-oracle,17.0.16-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
25-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1431 Date: 2025-02-24 13:02:43 +0000
24-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3295 Date: 2025-02-24 13:02:34 +0000
24-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk24u/pull/43 Date: 2025-02-03 16:00:14 +0000
03-02-2025

Changeset: f6e7713b Branch: master Author: Matthew Donovan <mdonovan@openjdk.org> Date: 2024-12-19 13:19:56 +0000 URL: https://git.openjdk.org/jdk/commit/f6e7713bb653811423eeb2515c2f69b437750326
19-12-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22591 Date: 2024-12-06 01:23:31 +0000
06-12-2024