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

WebSocket.isClosed() returns false if close handshake is initiated from server endpoint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 9
    • core-libs

      Reproduce steps:
      1. obtain a WebSocket connection
      2. close the connection with any reason from server side
      3. when onClose method is invoked on the client side, check
         isClosed() should be true
         sendText() should throw IllegalStateException

      But actually, two checks all fails.

      I will provide a test to reproduce it.

            prappo Pavel Rappo
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: