-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Memory leak when using concatMap with asynchronous function #2342
Comments
Honestly, I'm not entirely sure what the intended goal of the example code is, but The equivalent code does not "blow up" in RxJS 4, because it defaults to Queue scheduling, which runs everything breadth first. (non-recursively). So the concatMap buffer gets a chance to flush at each pass. You can do the same thing with Rx 5 by using the QueueScheduler ( |
I'm going to close this as not an issue for now. But if you find it's still an issue using the queue scheduler, please reopen. Thanks for reporting this and caring about the community and the library, @janmarthedal!! |
Fixed with release 5.1.1 (probably due to the fix of #2360). |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version:
Version 5.1.0.
Code to reproduce:
Expected behavior:
Memory usage stays bounded.
Actual behavior:
Out of memory (after some time).
Additional information:
If using
as the mapping function instead of
mapper_async
, the problem does not occur.If running the equivalent code using https://github.com/Reactive-Extensions/RxJS (v4.1.0) the memory does not blow up.
Run on node.js version 6.9.4.
The text was updated successfully, but these errors were encountered: