Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement variant of windowTimeout with fairBackpressure (#3054)
This commit adds a variant of windowTimeout that tries to honor backpressure of a slow downstream Subscriber better than the current implementation (which just errors in the face of backpressure and timeouts). The operator tries to request the minimum possible amount from upstream to honor the maxSize, but if a timeout occurs before all these elements could arrive - and if no more window is requested from downstream, the elements get temporarily stored into a pending window that is opened on timeout, until 1 more window is requested. See also #1898 and #2920. Fixes #1099.
- Loading branch information