Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1888

JDK14 Undertow wss client Connection timed out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.2.7.Final
    • SSL
    • None
    • Undefined

      this is error message with "-Djavax.net.debug=SSL,handshake"

      we can see ssl server is already give NewSessionTicket , but wss socket still Connection timed out

       

      ```

      javax.net.ssl|DEBUG|11|XNIO-1 I/O-1|2021-04-27 18:48:21.245 CST|NewSessionTicket.java:637|Consuming NewSessionTicketjavax.net.ssl|DEBUG|11|XNIO-1 I/O-1|2021-04-27 18:48:21.245 CST|NewSessionTicket.java:637|Consuming NewSessionTicket"NewSessionTicket": {  "ticket_lifetime"      : "1,800",  "ticket"               :

      { ......  }

      '}javax.net.ssl|DEBUG|11|XNIO-1 I/O-1|2021-04-27 18:48:21.246 CST|ChangeCipherSpec.java:149|Consuming ChangeCipherSpec messagejava.util.concurrent.ExecutionException: java.io.IOException: UT003035: Connection timed out at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) at xxxx.TestSocketHandShake.createWsSocketClient(TestSocketHandShake.java:53) at xxxx.TestSocketHandShake.main(TestSocketHandShake.java:75)Caused by: java.io.IOException: UT003035: Connection timed out at io.undertow.websockets.jsr.ServerWebSocketContainer.connectToServer(ServerWebSocketContainer.java:332) at io.undertow.websockets.jsr.ServerWebSocketContainer.connectToServer(ServerWebSocketContainer.java:309) at org.springframework.web.socket.client.standard.StandardWebSocketClient.lambda$doHandshakeInternal$0(StandardWebSocketClient.java:150) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.lang.Thread.run(Thread.java:832)

      ```

      and the same code can run well at JDK13.

       

      java version:14.0.2

       

              flaviarnn Flavia Rainone
              violetgo wei gao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: