Commit 0f635eec authored by Christian Tzolov's avatar Christian Tzolov Committed by Christian Tzolov
Browse files

feat: implement demand-based request handling in ResponseSubscribers (#516)



- Add hasRequestedDemand volatile boolean flag to AggregateSubscriber and BodilessResponseLineSubscriber
- Modify hookOnSubscribe to request Long.MAX_VALUE only on first demand request
- Guard event emission in hookOnComplete with hasRequestedDemand check
- Prevents unnecessary data processing when no downstream demand exists
- Improves backpressure handling and resource efficiency

Signed-off-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>
parent 1e29adef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment