Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-873

Websocket transport bus re-connect after network failure

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.2.0.Final
    • Fix Version/s: 3.2.1.Final
    • Component/s: ErraiBus
    • Labels:
      None

      Description

      When a network failure occurs using the websocket transport the WebsocketHandler will automatically try to reconnect, and send a Associate command to the server. Because the server already has a QueueSession with the same id marked as active it never sends a Successful Negotiation message and the client side bus never changes its state back to ONLINE

      Proposed fix is to add
      sendMessage(queueChannel, WebSocketNegotiationMessage.getSuccessfulNegotiation());

      To line 57 of WebsocketNegotiationHandler.java in the errai-bus module.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                csa Christian Sadilek
                Reporter:
                lmetzger Lorin Metzger
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: