Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

(#523) handle MCollective::ClientTimeoutError #524

Merged
merged 1 commit into from
Jul 26, 2018

Conversation

ripienaar
Copy link
Collaborator

On clients the behaviour of never ending reconnects is a problem when
running some client in an automation since you might end up getting
stuck forever in a loop should the configuration be incorrect

This allows setting plugin.nats.max_reconnect_attempts to a integer
setting, it defaults to -1 as today

@ripienaar ripienaar changed the title (#523) support max_reconnect_attempts for the NATS connection (#523) handle MCollective::ClientTimeoutError Jul 26, 2018
The default behaviour of perpetually retrying connections is not
suitable for clients, especially ones run as part of some automation as
they might never exit

This respects the connection_timeout configuration option
@ripienaar ripienaar merged commit b3456d8 into choria-legacy:master Jul 26, 2018
@ripienaar ripienaar deleted the 523 branch July 26, 2018 13:28
@ripienaar ripienaar restored the 523 branch July 27, 2018 06:31
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

1 participant