aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/inet_tls_dist.erl
diff options
context:
space:
mode:
authorZandra <[email protected]>2015-12-28 13:48:04 +0100
committerZandra <[email protected]>2015-12-28 13:48:04 +0100
commitdbd58427c1447af394ea5449cb4cdc32e446918b (patch)
tree5b92e3c8fbfc3bcbcb57dfb2279623b029bb0e24 /lib/ssl/src/inet_tls_dist.erl
parent4f2d5c08a08e25e9b5b1b2011a8efe2fea441049 (diff)
parent91006821c6d65708fa05a93ec1edc2372326a3cb (diff)
downloadotp-dbd58427c1447af394ea5449cb4cdc32e446918b.tar.gz
otp-dbd58427c1447af394ea5449cb4cdc32e446918b.tar.bz2
otp-dbd58427c1447af394ea5449cb4cdc32e446918b.zip
Merge branch 'legoscia/tls_dist_error_reporting' into maint
* legoscia/tls_dist_error_reporting: Report bad options for outgoing TLS distribution Save error reasons for TLS distribution connections Report bad options for TLS distribution connections OTP-13219
Diffstat (limited to 'lib/ssl/src/inet_tls_dist.erl')
-rw-r--r--lib/ssl/src/inet_tls_dist.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/ssl/src/inet_tls_dist.erl b/lib/ssl/src/inet_tls_dist.erl
index 404ae93d20..6fe99a81c5 100644
--- a/lib/ssl/src/inet_tls_dist.erl
+++ b/lib/ssl/src/inet_tls_dist.erl
@@ -76,23 +76,23 @@ do_setup(Kernel, Node, Type, MyNode, LongOrShortNames, SetupTime) ->
Timer, Version, Ip, TcpPort, Address,
Type),
dist_util:handshake_we_started(HSData);
- _ ->
+ Other ->
%% Other Node may have closed since
%% port_please !
?trace("other node (~p) "
"closed since port_please.~n",
[Node]),
- ?shutdown(Node)
+ ?shutdown2(Node, {shutdown, {connect_failed, Other}})
end;
- _ ->
+ Other ->
?trace("port_please (~p) "
"failed.~n", [Node]),
- ?shutdown(Node)
+ ?shutdown2(Node, {shutdown, {port_please_failed, Other}})
end;
- _Other ->
+ Other ->
?trace("inet_getaddr(~p) "
"failed (~p).~n", [Node,Other]),
- ?shutdown(Node)
+ ?shutdown2(Node, {shutdown, {inet_getaddr_failed, Other}})
end.
close(Socket) ->