Monitoring of nodes..

Geoff Wong geoff@REDACTED
Wed May 17 08:06:09 CEST 2000

> What have I missed if I have three (3) nodes <a@REDACTED,b@REDACTED,c@REDACTED>, they
> are all "connected" with each other. Node 'a@REDACTED' does BIF calls to
> monitor_node(b@REDACTED, true) and monitor_node(c@REDACTED,true). Now node
> 'a@REDACTED' monitors both node 'b@REDACTED' and node 'c@REDACTED'. If I terminate
> node 'b@REDACTED', node 'a@REDACTED' should receive an {nodedown, b@REDACTED} message
> which it does. 
> BUT, if I then terminate the 'c@REDACTED' node I do NOT receive any
> {nodedown, c@REDACTED} message. Now, is this the correct behaviour? It's
> not what I expected anyway..?

Indeed net_kernel:monitor_nodes(true) also gives unexpected behaviour.

If we do:

net_adm:ping(my@REDACTED),  % assuming this is up and responds with 'ping'
receive X -> X end.

Then terminate my@REDACTED and we never get a nodedown message 
on the node which ran net_kernel:monitor_nodes().


More information about the erlang-questions mailing list