Fix excessive buffering in stream stages
By not considering how many items are currently buffered at a stage, CAF happily hands out infinite credit to upstream stages. By restricting the maximum capacity we communicate upstream by the number of currently cached elements, we achieve the correct behavior.
Showing
Please register or sign in to comment