-
Bug
-
Resolution: Fixed
-
P3
-
8, 11, 13, 15, 17, 18
-
b06
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8270748 | 17.0.1 | Alexey Bakhtin | P3 | Resolved | Fixed | b03 |
JDK-8270291 | 17 | Alexey Bakhtin | P3 | Resolved | Fixed | b31 |
JDK-8270289 | 15.0.5 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8270288 | 13.0.9 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8271617 | 11.0.14-oracle | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b01 |
JDK-8271200 | 11.0.13 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8276270 | openjdk8u322 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8273689 | openjdk8u312 | Alexey Bakhtin | P3 | Resolved | Fixed | b06 |
JDK-8271712 | 8u321 | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b01 |
JDK-8274923 | 8u311 | Prajwal Kumaraswamy | P3 | Resolved | Fixed | b31 |
JDK-8272848 | 8u301 | Prajwal Kumaraswamy | P3 | Closed | Fixed | b34 |
SSL Server fails as expected: "javax.net.ssl.SSLException: Unsupported or unrecognized SSL message"
The client connection fails with:
ACTUAL BEHAVIOUR:
java.net.SocketException: "Connection reset"
EXPECTED BEHAVIOUR:
java.io.EOFException
It happens because of SSL server does not clean the input stream before closing the underlying socket. As result, it causes TCP connection resets on some platforms.
JDK8 TLSv1.2 implementation did not have such an issue because of it explicitly clean the input stream before closing the socket : https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/file/fde7fd2a2fd2/src/share/classes/sun/security/ssl/SSLSocketImpl.java#l1932
Suggest doing the same in the TLSv1.3 implementation.
Please note: issue reproduced with the PlainSocketImpl only. JDK13 and higher should be run with -Djdk.net.usePlainSocketImpl=true option. JDK8 and JDK11 reproduce this issue in the default configuration.
- backported by
-
JDK-8270288 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8270289 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8270291 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8270748 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8271200 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8271617 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8271712 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8273689 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8274923 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8276270 TCP Connection Reset when connecting simple socket to SSL server
- Resolved
-
JDK-8272848 TCP Connection Reset when connecting simple socket to SSL server
- Closed
- relates to
-
JDK-8284192 SSLSocketReset test should expect EOFException on client side
- In Progress
-
JDK-8272643 Backout JDK-8176837 from 8u312
- Resolved
-
JDK-8274524 SSLSocket.close() hangs if it is called during the ssl handshake
- Closed
- links to
-
Commit openjdk/jdk11u-dev/75010843
-
Commit openjdk/jdk13u-dev/3c83f414
-
Commit openjdk/jdk15u-dev/93ad8b6c
-
Commit openjdk/jdk17/e1d3e73d
-
Commit openjdk/jdk/6f171b9f
-
Review openjdk/jdk11u-dev/151
-
Review openjdk/jdk13u-dev/233
-
Review openjdk/jdk15u-dev/77
-
Review openjdk/jdk17/236
-
Review openjdk/jdk/4520