Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced memory use on busy Sessions by removing handled items from in…
…flightTimeouts Items in the inflightTimeouts DelayQueue were only ever removed when they timed out. But in normal operation the related messages would have been handled long before that. There should only ever be a number equal to the number of inflightSlots in the queue, but the queue would grow to the maximum number of messages ever handled in a 5 second interval. This made each session take much more memory than needed.
- Loading branch information