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 #1001 CloneableRequestMessage fails to clone content and throws ObjectDisposed exception #1002

Merged
merged 13 commits into from Jan 29, 2024

Conversation

nozzlegear
Copy link
Owner

This pull request fixes a bug where the CloneableRequestMessage underlying the LeakyBucketExecutionPolicy and the RetryExecutionPolicy classes would fail to clone the request's content if the request wasn't using JsonContent. It also fixes a bug that caused the original request to be disposed before the leaky bucket got a succesful response, thereby throwing an ObjectDisposedException.


@clement911 I've temporarily reverted your changes for the 7.0 release so I could publish this (the action only publishes from one branch at the moment). I have some refactors and breaking changes I want to do for 7.0, so I've moved it to the branch 7.0-dev and will open an issue tomorrow or Tuesday explaining my goals for 7.0!

I'll get the action set up to publish from both branches as well so we can start publishing the 7.0 prereleases without merging them into master.

@nozzlegear nozzlegear added the bug label Jan 29, 2024
@nozzlegear nozzlegear merged commit 817fd26 into master Jan 29, 2024
@nozzlegear nozzlegear deleted the fix-1001 branch January 29, 2024 06:57
@nozzlegear nozzlegear added this to the 6.12.1 milestone Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CloneableRequestMessage can fail to clone content and then throw an ObjectDisposedException
1 participant