summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2021-01-16 18:56:13 +0500
committerMichael Klishin <michael@clojurewerkz.org>2021-01-16 18:56:13 +0500
commita087621257f1de355ea16ceebcfb798df7b880c6 (patch)
tree720a1198aee970323246db34962ab4325fc819aa /deps
parentba1aac4e8720e9667ba260186a7cc77bc1e0265b (diff)
downloadrabbitmq-server-git-a087621257f1de355ea16ceebcfb798df7b880c6.tar.gz
Handle a 'noport' clause here
Follow-up to #2722
Diffstat (limited to 'deps')
-rw-r--r--deps/rabbit_common/src/rabbit_nodes_common.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/rabbit_common/src/rabbit_nodes_common.erl b/deps/rabbit_common/src/rabbit_nodes_common.erl
index 71fe6b3b07..be57a38336 100644
--- a/deps/rabbit_common/src/rabbit_nodes_common.erl
+++ b/deps/rabbit_common/src/rabbit_nodes_common.erl
@@ -53,6 +53,8 @@ names(Hostname, RetriesLeft) ->
[Hostname, RetriesLeft]),
case catch epmd_names(Hostname) of
{ok, R } -> {ok, R};
+ noport ->
+ names(Hostname, RetriesLeft - 1);
{error, _} ->
names(Hostname, RetriesLeft - 1)
end.