Skip to content

Commit f5c931f

Browse files
author
Simon MacMullen
committed
Explain
1 parent a8a0dfe commit f5c931f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rabbit_reader.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,8 @@ emit_stats(State) ->
10791079
%% If we emit an event which looks like we are in flow control, it's not a
10801080
%% good idea for it to be our last even if we go idle. Keep emitting
10811081
%% events, either we stay busy or we drop out of flow control.
1082+
%% The 5 is to match the test in formatters.js:fmt_connection_state().
1083+
%% This magic number will go away when bug 24829 is merged.
10821084
case proplists:get_value(last_blocked_age, Infos) < 5 of
10831085
true -> ensure_stats_timer(State1);
10841086
_ -> State1

0 commit comments

Comments
 (0)