Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

ServerSessionManager: only try to remove consistent information #258

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

thiagoss
Copy link

It is possible that a client creates 2 sessions if the first attempt
times out. In this case the ServerSessionManager will associate the 2nd
session to the client but the 1st session that is left unatended will
time out and eventually be unregistered.

When this is done it will cause the maps in this object to have the
client/session entry removed but those are already pointing to the new
information that is in use. Their removal will cause issues in cluster
operation.

Fixes #257

It is possible that a client creates 2 sessions if the first attempt
times out. In this case the ServerSessionManager will associate the 2nd
session to the client but the 1st session that is left unatended will
time out and eventually be unregistered.

When this is done it will cause the maps in this object to have the
client/session entry removed but those are already pointing to the new
information that is in use. Their removal will cause issues in cluster
operation.

Fixes atomix#257
@coveralls
Copy link

Coverage Status

Coverage remained the same at 43.262% when pulling 4201065 on waltznetworks:session-unregister into 4f27595 on atomix:master.

@kuujo
Copy link
Member

kuujo commented Jan 4, 2017

This is great! I was actually just looking at this yesterday and realized the client ID should probably also be used to unregister clients' sessions when a new session for the client is registered as well to ensure old sessions don't hang around for too long, but that should be done in another issue.

@kuujo kuujo merged commit bc0109b into atomix:master Jan 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants