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 for #1153 - Semaphore disposed before discarded tasks have finished #1154

Merged

Conversation

ashneilson
Copy link
Contributor

Proposed Changes

Catch an ObjectDisposedException when attempting to Release the _limiter Semaphore after the WorkPool has been stopped.

Types of Changes

Checklist

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

@lukebakken lukebakken self-requested a review February 23, 2022 14:05
@lukebakken lukebakken self-assigned this Feb 23, 2022
@lukebakken lukebakken added this to the 6.2.4 milestone Feb 23, 2022
@michaelklishin michaelklishin merged commit 0c95330 into rabbitmq:6.x Feb 23, 2022
@michaelklishin
Copy link
Member

Thank you!

@lukebakken
Copy link
Contributor

I will see if this needs to be ported to the other branches. 6.2.4 release will happen today or tomorrow.

@ashneilson
Copy link
Contributor Author

Wow this is a fantastic response! Thank you both

@lukebakken
Copy link
Contributor

This does not appear to apply to the main branch. Checking 7.x next.

lukebakken pushed a commit that referenced this pull request Feb 23, 2022
…ception

Fix for #1153 - Semaphore disposed before discarded tasks have finished

(cherry picked from commit 0c95330)
lukebakken added a commit that referenced this pull request Feb 24, 2022
Merge pull request #1154 from ricado-group/1153-semaphore-disposed-ex…
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.

3 participants