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

client fails if it can't register a session? #147

Closed
ongardie opened this issue Feb 10, 2016 · 2 comments
Closed

client fails if it can't register a session? #147

ongardie opened this issue Feb 10, 2016 · 2 comments

Comments

@ongardie
Copy link

The Copycat internals doc says:

If the registration fails, the client attempts to connect to another random server and register a new session again. In the event that the client fails to register a session with any server, the client fails and must be restarted.

Why give up? What if there was just a temporary network outage? How bad is it to restart a client (is that a manual or automatic thing)?

@kuujo
Copy link
Member

kuujo commented Feb 11, 2016

You're right.

Actually, @madjam suggested the same thing a while back. The result was a ConnectionStrategy and a few provided ConnectionStrategies. If an attempt to register a session fails on all servers known to the client, the strategy determines how to handle that. The same is true of lost sessions.

I'll file this in the docs repo.

@kuujo
Copy link
Member

kuujo commented Feb 11, 2016

@kuujo kuujo closed this as completed Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants