RFR: JDK-8316671: sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java test fails intermittent with Read timed out

Matthias Baesken mbaesken at openjdk.org
Tue Sep 26 07:29:51 UTC 2023


We sometimes run into the following error. This especially occurs when running with fastdebug binaries and on Linux ppc64le machines.
Current timeout set in the test is 1 second.

Server accepting: 315357614990101
Server accepted: 315359219006041
Client starting handshake: 315359228098300
java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:278)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:304)
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.read(Socket.java:1096)
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.decode(SSLSocketInputRecord.java:160)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1507)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1422)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
at SSLSocketCloseHang.doClientSide(SSLSocketCloseHang.java:149)
at SSLSocketCloseHang.startClient(SSLSocketCloseHang.java:320)
at SSLSocketCloseHang.<init>(SSLSocketCloseHang.java:246)
at SSLSocketCloseHang.main(SSLSocketCloseHang.java:232)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)

Making the timeout dependent on the timeout factor would give us the chance to influence the test on such slower setups.

-------------

Commit messages:
 - JDK-8316671

Changes: https://git.openjdk.org/jdk/pull/15912/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15912&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316671
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/15912.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15912/head:pull/15912

PR: https://git.openjdk.org/jdk/pull/15912



More information about the security-dev mailing list