-
Bug
-
Resolution: Unresolved
-
P4
-
26
from a comment on JDK-818262:
In the test SSLSocketEmptyFragments that came with this change we get 2-4 exceptions/errors like the one below.
This happens on Windows. Can we make the test more reliable (e.g. increase allowed timeouts or retry the inputStream.read operation) ?
Exception :
java.lang.RuntimeException: An error occurred running the test.
at SSLSocketEmptyFragments.testEmptyChangeCipherSpecMessage(SSLSocketEmptyFragments.java:230)
at SSLSocketEmptyFragments.executeTest(SSLSocketEmptyFragments.java:123)
at SSLSocketEmptyFragments.main(SSLSocketEmptyFragments.java:357)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:277)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:302)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:354)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:798)
at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:981)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:971)
at java.base/java.io.InputStream.read(InputStream.java:222)
at SSLSocketEmptyFragments.processServerResponse(SSLSocketEmptyFragments.java:245)
at SSLSocketEmptyFragments.testEmptyChangeCipherSpecMessage(SSLSocketEmptyFragments.java:215)
In the test SSLSocketEmptyFragments that came with this change we get 2-4 exceptions/errors like the one below.
This happens on Windows. Can we make the test more reliable (e.g. increase allowed timeouts or retry the inputStream.read operation) ?
Exception :
java.lang.RuntimeException: An error occurred running the test.
at SSLSocketEmptyFragments.testEmptyChangeCipherSpecMessage(SSLSocketEmptyFragments.java:230)
at SSLSocketEmptyFragments.executeTest(SSLSocketEmptyFragments.java:123)
at SSLSocketEmptyFragments.main(SSLSocketEmptyFragments.java:357)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:277)
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:302)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:354)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:798)
at java.base/java.net.Socket$SocketInputStream.implRead(Socket.java:981)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:971)
at java.base/java.io.InputStream.read(InputStream.java:222)
at SSLSocketEmptyFragments.processServerResponse(SSLSocketEmptyFragments.java:245)
at SSLSocketEmptyFragments.testEmptyChangeCipherSpecMessage(SSLSocketEmptyFragments.java:215)
- relates to
-
JDK-8182621 JSSE should reject empty TLS plaintexts
-
- Closed
-