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

sun/security/ssl/SocketCreation/SocketCreation.java fails intermittently

    Details

      Description

      sun/security/ssl/SocketCreation/SocketCreation.java fails intermittently with SSLHandshakeException:

      ----------System.out:(68/2071)----------
      -------------------------------------
      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(String, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(String, int, InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(InetAddress, int, InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket()
      Client: Will connect to server on port 61110...
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int)
      Server: Will accept on SSL server socket...
      Client: Will connect to server on port 61112...
      Client: Will layer SSL socket on top...
      Server read: 24
      Client read: 85

      -------------------------------------
      Server: Will call createServerSocket(int, int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(String, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int, int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int, int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(String, int, InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int, int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket(InetAddress, int, InetAddress, int)
      Server read: 24
      Client read: 85

      Server: Will call createServerSocket(int, int)
      Server: Will accept on SSL server socket...
      Client: Will call createSocket()
      Client: Will connect to server on port 61122...
      ----------System.err:(26/1927)----------
      javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
      at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:1053)
      at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:968)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-internal/SSLSocketImpl.java:1395)
      at sun.security.ssl.SSLSocketImpl.writeRecord(java.base@9-internal/SSLSocketImpl.java:728)
      at sun.security.ssl.AppOutputStream.write(java.base@9-internal/AppOutputStream.java:67)
      at sun.security.ssl.AppOutputStream.write(java.base@9-internal/AppOutputStream.java:81)
      at SocketCreation.doClientSide(SocketCreation.java:296)
      at SocketCreation.startClient(SocketCreation.java:508)
      at SocketCreation.<init>(SocketCreation.java:440)
      at SocketCreation.main(SocketCreation.java:413)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:535)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
      Caused by: java.io.EOFException: SSL peer shut down incorrectly
      at sun.security.ssl.SSLSocketInputRecord.decode(java.base@9-internal/SSLSocketInputRecord.java:156)
      at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/SSLSocketImpl.java:1026)
      ... 15 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjiang John Jiang
                Reporter:
                amlu Amy Lu (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: