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

Close rate-limiter when closing pool #37

Closed
wants to merge 1 commit into from
Closed

Close rate-limiter when closing pool #37

wants to merge 1 commit into from

Conversation

dim
Copy link
Collaborator

@dim dim commented Sep 3, 2014

That rate-limiter instances are never closed, which lead to thousands of stale goroutines in my case. Because singleConnPool is not public, https://github.com/bsm/redis-balancer/blob/master/backend.go#L83 is creating normal client connections for its background checks. When the client is closed, the pool is released too, but the rateLimiter.loop is never shut down properly.

@vmihailenco
Copy link
Collaborator

I've sent a PR with simpler approach: #38. Please take a look.

@vmihailenco
Copy link
Collaborator

Merged #38 instead. Thanks for your time.

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

Successfully merging this pull request may close these issues.

None yet

2 participants