You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cluster mode deployment,when the client reconnects after disconnection, it uses the original token to trigger the wsHandler, then calls ws.registerChan, and subsequently notifies other nodes to disconnect the same client's connections on other endpoints.
After that, it calls MultiTerminalLoginCheck on other machines, but the newly created client's token is empty and hasn't been assigned a value.
After that, the old token is invalidated. However, since client.token is empty, PreservedToken remains unset.
Here, all tokens except the new one are supposed to be marked as kickedtoken, but since the incoming token is empty, all tokens end up being flagged as kickedtoken.
During network reconnection, the old token is still used, causing subsequent requests to fail due to token invalidation and being kicked out. This doesn't happen in standalone mode because that logic isn't executed there.