Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Watchers on different keys from same etcd client #26

Open
jonmorehouse opened this issue May 13, 2014 · 1 comment
Open

Multiple Watchers on different keys from same etcd client #26

jonmorehouse opened this issue May 13, 2014 · 1 comment

Comments

@jonmorehouse
Copy link
Contributor

Has anyone noticed issues where you have one etcd client and choose to create multiple watchers on that client?

When I do this, the watchers don't update correctly and when calling stop() on them, they make the node process hang.

Here's some background as to what I'm working on. The loadKeys methods grabs each value, sets it on a global object. It should set up a unique watcher for each value as well. I had to create a new instance in the setWatcher method to prevent weird clashing / buggy behavior when keys are updated.

https://github.com/jonmorehouse/node-config/blob/master/lib/etcd.coffee

@stianeikeland
Copy link
Owner

Hello, really sorry about the late reply.
The http agent pool was increased at some time in the past, a small pool might have been the issue.
Is this still a problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants