diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-02-18 13:14:35 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-02-18 13:14:35 +0000 |
commit | ba0f9d7b68e8a26b57c7b030e5eea55309518660 (patch) | |
tree | ea430c733ba5181103ddb68e904f745c112b6b2b | |
parent | 16da4fdaf53e8c3f8337b0e0ee91e4f3084776e1 (diff) | |
parent | 9ba414dc72130ab0513a2f30ce17f442bb8f1c09 (diff) | |
download | rabbitmq-server-ba0f9d7b68e8a26b57c7b030e5eea55309518660.tar.gz |
Merge bug25868 (again)
-rw-r--r-- | src/rabbit_reader.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index b1d0e275..60e026a4 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -1077,11 +1077,10 @@ i(state, #v1{connection_state = ConnectionState, last_blocked_by = WasBlockedBy, last_blocked_at = T}}) -> Recently = T =/= never andalso timer:now_diff(erlang:now(), T) < 5000000, - case {credit_flow:blocked() andalso Alarms =:= [], - WasBlockedBy, Recently} of - {true, _, _} -> flow; - {false, flow, true} -> flow; - {_, _, _} -> ConnectionState + case {credit_flow:blocked(), WasBlockedBy, Alarms, Recently} of + {true, _, [], _} -> flow; + {_, flow, [], true} -> flow; + {_, _, _, _} -> ConnectionState end; i(Item, #v1{connection = Conn}) -> ic(Item, Conn). |