Skip to content

Commit

Permalink
Merge branch 'legoscia/dist-shutdown-reasons/PR-1028/OTP-13458'
Browse files Browse the repository at this point in the history
* legoscia/dist-shutdown-reasons/PR-1028/OTP-13458:
  Error reasons for more distribution errors
  • Loading branch information
zhird committed May 4, 2016
2 parents 5127e47 + a178332 commit f972186
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/kernel/src/dist_util.erl
Expand Up @@ -156,7 +156,7 @@ is_allowed(#hs_data{other_node = Node,
send_status(HSData, not_allowed),
error_msg("** Connection attempt from "
"disallowed node ~w ** ~n", [Node]),
?shutdown(Node);
?shutdown2(Node, {is_allowed, not_allowed});
_ -> true
end.

Expand Down Expand Up @@ -607,10 +607,10 @@ recv_challenge_reply(#hs_data{socket = Socket,
_ ->
error_msg("** Connection attempt from "
"disallowed node ~w ** ~n", [NodeB]),
?shutdown(NodeB)
?shutdown2(NodeB, {recv_challenge_reply_failed, bad_cookie})
end;
_ ->
?shutdown(no_node)
Other ->
?shutdown2(no_node, {recv_challenge_reply_failed, Other})
end.

recv_challenge_ack(#hs_data{socket = Socket, f_recv = FRecv,
Expand Down

0 comments on commit f972186

Please sign in to comment.