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 ID pool when closing client #51

Closed
wants to merge 1 commit into from

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Sep 15, 2020

For every client that SimpleClientFactory creates, a goroutine is started for the idPool.

When you call client.Close() the connection is closed but the idPool remains running.

With this change, the idPool is properly closed.

Found together with @adri in #48

For every client that `SimpleClientFactory` creates, a goroutine is started for the `idPool`.

When you call `client.Close()` the connection is closed but the `idPool` remains running.

With this change, the `idPool` is properly closed.

Co-authored-by: Adrian Philipp <adri@users.noreply.github.com>
@ruudk ruudk force-pushed the close-ids-pool-on-client-close branch from d0e57c7 to 26b1b08 Compare September 15, 2020 10:19
@ruudk ruudk mentioned this pull request Sep 15, 2020
2 tasks
@yookoala
Copy link
Owner

This is a nice addition. Please rebase to the latest master branch and I will merge this. Thanks.

@yookoala
Copy link
Owner

After reviewing #52, I think that is a more flexible approach to the problem. I'd prefer that over this.

I'll close this PR now. We can further discuss in #52.

@yookoala yookoala closed this Sep 23, 2020
@ruudk ruudk deleted the close-ids-pool-on-client-close branch September 28, 2020 08:05
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