summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-10 12:39:54 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-10 12:39:54 +0100
commitae0dbc9500599cad81fd4e1bf9c51396c6e2b1a2 (patch)
treeb2930e6801d8cb9c2aabe7d92cf960184aab20fa
parent23de2b4e37beee15d70b9095ff781014e4cf03c2 (diff)
downloadrabbitmq-server-bug25546.tar.gz
TODO++bug25546
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 52c6140e..37041d34 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -841,6 +841,8 @@ handle_method(#'basic.qos'{prefetch_count = 0}, _,
handle_method(#'basic.qos'{prefetch_count = PrefetchCount}, _,
State = #ch{limiter = Limiter, unacked_message_q = UAMQ}) ->
+ %% TODO queue:len(UAMQ) is not strictly right since that counts
+ %% unacked messages from basic.get too. Pretty obscure though.
Limiter1 = rabbit_limiter:limit_prefetch(Limiter,
PrefetchCount, queue:len(UAMQ)),
{reply, #'basic.qos_ok'{},