Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366107

improve reliability of SSLSocketEmptyFragments on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 26
    • security-libs

      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)

            mdonovan Matthew Donovan
            mdonovan Matthew Donovan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: