summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-07-25 17:32:52 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-07-25 17:32:52 +0100
commit383c3ec80a2fba2f0090d3b4ccabd77668438ecb (patch)
tree453414f4772dc21e95a8e90e161a84bfb85e215a
parentc60a603347517bf31304008a7f485142f1711db5 (diff)
downloadrabbitmq-server-bug25921.tar.gz
Explainbug25921
-rw-r--r--src/rabbit_misc.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 1a9c8a41..006bbadf 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -899,6 +899,9 @@ ntoab(IP) ->
_ -> "[" ++ Str ++ "]"
end.
+%% We try to avoid reconnecting to down nodes here; this is used in a
+%% loop in rabbit_amqqueue:on_node_down/1 and any delays we incur
+%% would be bad news.
is_process_alive(Pid) ->
Node = node(Pid),
lists:member(Node, [node() | nodes()]) andalso