Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust default queue name to just be the prefix
As throttles are now per-prefix, any default queue strategy that fragments messages sharing a common prefix amongst multiple pipes has an effect where the despool logic will make very slow progress attempting to send them. This is particularly problematic for whispers. If an addon were to queue up a lot of data for unique whisper targets, we can only despool one message per second for at most one of those targets, with all the other pipes constantly being blocked. The worst case scenario is whisper data backs up faster than it can be sent out on a prefix, and if the data itself is formed of multiple messages then it may be the case that no user receives complete data in a timely manner. Because of this, the default queue name is now just the prefix itself. This should ensure that in large transfers across a prefix at least one player is still getting data in a more reasonable timeframe, and makes delivery behavior more consistent with raw use of the API. This also reduces the amount of work CTL has to do internally when despooling, as by default there'll be less unique pipes.
- Loading branch information