diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_networking.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 42438790c0..112b737562 100644 --- a/src/rabbit_networking.erl +++ b/src/rabbit_networking.erl @@ -120,6 +120,7 @@ %%---------------------------------------------------------------------------- boot() -> + ok = record_distribution_listener(), ok = start(), ok = boot_tcp(), ok = boot_ssl(). @@ -275,6 +276,12 @@ tcp_listener_stopped(Protocol, IPAddress, Port) -> ip_address = IPAddress, port = Port}). +record_distribution_listener() -> + {ok, Names} = net_adm:names(), + {Name, _} = rabbit_nodes:parts(node()), + [Port] = [P || {N, P} <- Names, N =:= Name], + tcp_listener_started('erlang-clustering', {0,0,0,0,0,0,0,0}, Port). + active_listeners() -> rabbit_misc:dirty_read_all(rabbit_listener). |
