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] Recursion causing stack overflow when disposing client/service #588

Merged
merged 5 commits into from
Sep 17, 2024

Conversation

nwithan8
Copy link
Member

Description

Unhandled recursion during disposal of a Client or service would cause a stack overflow.

Closes #587

Testing

  • Add unit tests to verify disposal does not cause stack overflow

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

- Add unit tests to verify disposal does not cause stack overflow
Closes #587
@nwithan8 nwithan8 requested a review from a team September 17, 2024 19:29
Copy link
Member

@jchen293 jchen293 left a comment

Choose a reason for hiding this comment

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

seems fine, test proves it fixes the issue

EasyPost.Tests/ClientTest.cs Outdated Show resolved Hide resolved
EasyPost/_base/EasyPostService.cs Outdated Show resolved Hide resolved
- Add new assertion handler for asserting an action does not throw an exception
@nwithan8 nwithan8 merged commit 53e179f into master Sep 17, 2024
14 checks passed
@nwithan8 nwithan8 deleted the disposal branch September 17, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Calling Dispose on the Client causes a StackOverflowException
3 participants