summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2010-10-29 12:48:55 +0100
committerSimon MacMullen <simon@rabbitmq.com>2010-10-29 12:48:55 +0100
commit0ff22caa2dce097876fd863a2495c37e725a12f7 (patch)
treee6554e0ce9fded147c3a5af3f824493b97308d2d /src
parent07ed3788482f32574d9bda40d1e430ce03fa37f9 (diff)
downloadrabbitmq-server-git-0ff22caa2dce097876fd863a2495c37e725a12f7.tar.gz
Add a comment to explain
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_networking.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 5e173cb351..ac0b9860d2 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -189,6 +189,9 @@ stop_tcp_listener(Host, Port) ->
ok.
tcp_listener_started(IPAddress, Port) ->
+ %% We need the ip to distinguish e.g. 0.0.0.0 and 127.0.0.1
+ %% We need the host so we can distinguish multiple instances of the above
+ %% in a cluster.
ok = mnesia:dirty_write(
rabbit_listener,
#listener{node = node(),