summaryrefslogtreecommitdiff
path: root/src
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
commit2f06190227bf3a7444f511eb8ff1f551b6da88d2 (patch)
tree453414f4772dc21e95a8e90e161a84bfb85e215a /src
parent00f7c16f36348107fc050d1ecb236e22d34f1014 (diff)
downloadrabbitmq-server-git-2f06190227bf3a7444f511eb8ff1f551b6da88d2.tar.gz
Explain
Diffstat (limited to 'src')
-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 1a9c8a418e..006bbadfb8 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