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(fetch): Fix memory leak when handling endless streaming #13809

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

soapproject
Copy link

This is a quick fix to address a memory overflow issue caused by the recursive approach when handling endless streams (e.g., CCTV).

However, this is not a perfect solution, as this approach still does not trigger the onFinishedResolving callback for streams that never terminate.

Fixes GH-13806

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • [] Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

The lints didn't pass but they are unrelated to the changes in this commit?
image

This is a quick fix to address a memory overflow issue caused by the recursive approach when handling endless streams (e.g., CCTV).
However, this is not a perfect solution, as this approach still does not trigger the onFinishedResolving callback for streams that never terminate.

Fixes getsentryGH-13806
@mydea mydea requested a review from lforst September 26, 2024 11:03
adjust format
@AbhiPrasad AbhiPrasad self-requested a review September 26, 2024 12:59
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.

Memory leak with endless streaming (example: CCTV)
1 participant