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

Fix observable to honor dispose #318

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

WolfspiritM
Copy link
Contributor

@WolfspiritM WolfspiritM commented Jun 28, 2019

When you Subscribe to a ListObjectsAsync right now there is no way to cancel it before completion (except for using a cancelationtoken). Dispose on the resulting ISubscription is ignored.
For big storages this is an issue as it keeps polling the minio server without any reason in the background and new requests just add to it resulting in spamming the API.

This PR causes the requests to stop once the Subscription gets disposed.

Copy link

@sinhaashish sinhaashish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kannappanr kannappanr merged commit 67340c9 into minio:master Jul 3, 2019
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

4 participants