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

When using WebSockets, cannot reconnect when server restarts

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0.Beta1
    • Fix Version/s: None
    • Component/s: ErraiBus
    • Labels:

      Description

      When using WebSockets, the reconnection fails when the server has restarted, with the ErrorMessage "bad session id".

      This makes sense because the server has been restarted, but I do not understand what is supposed to be done in this circumstance. Before switching to WebSockets, the Bus would reconnect, and when I attempted to do something, the server would throw a 'RequiresLoginException' (our code), which the client would then use to prompt the user to authenticate.

      The code is ending up in WebsocketHandler.handleProtocolExtension in the case WebsocketNegotiationFailed.

      Please let me know if this is clear, and if I understand things correctly. Ideally, I would like some way to re-authenticate and re-establish the socket connection

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                jblinick Josh B
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: