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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: