summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-12-06 11:31:32 +0000
committerSimon MacMullen <simon@rabbitmq.com>2013-12-06 11:31:32 +0000
commitf5c931f21a9d04f89443d7f49949ad5b4132cd88 (patch)
tree84e14caa964ac325199ae037cb3859b90bd24e25 /src
parenta8a0dfe74fab4bbf0850abd771496f70336fd6ff (diff)
downloadrabbitmq-server-git-f5c931f21a9d04f89443d7f49949ad5b4132cd88.tar.gz
Explain
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_reader.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index 2c19b2bf0e..46c5c42a45 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -1079,6 +1079,8 @@ emit_stats(State) ->
%% If we emit an event which looks like we are in flow control, it's not a
%% good idea for it to be our last even if we go idle. Keep emitting
%% events, either we stay busy or we drop out of flow control.
+ %% The 5 is to match the test in formatters.js:fmt_connection_state().
+ %% This magic number will go away when bug 24829 is merged.
case proplists:get_value(last_blocked_age, Infos) < 5 of
true -> ensure_stats_timer(State1);
_ -> State1