aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2019-02-21 14:49:35 +0100
committerHans Bolinder <[email protected]>2019-02-27 15:43:13 +0100
commit4eee5659d01771417da9ef952274eda359f31c2d (patch)
treeea070f409fe27804840941da99703ee7726857c1 /lib/kernel
parentb0f099c8a7eb47ee2b894f58b8e71bb28c512be8 (diff)
downloadotp-4eee5659d01771417da9ef952274eda359f31c2d.tar.gz
otp-4eee5659d01771417da9ef952274eda359f31c2d.tar.bz2
otp-4eee5659d01771417da9ef952274eda359f31c2d.zip
kernel: Global no longer tries to connect more than once
As it seems, trying to connect again after having received {nodedown, Node}, only means a prolonged delay.
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/global.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/kernel/src/global.erl b/lib/kernel/src/global.erl
index a38522eb5c..e6490a8130 100644
--- a/lib/kernel/src/global.erl
+++ b/lib/kernel/src/global.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2017. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -50,10 +50,9 @@
%% This is for backward compatibility only; the functionality is broken.
-define(WARN_DUPLICATED_NAME, global_multi_name_action).
-%% Undocumented Kernel variable. Set this to 0 (zero) to get the old
-%% behaviour.
+%% Undocumented Kernel variable.
-define(N_CONNECT_RETRIES, global_connect_retries).
--define(DEFAULT_N_CONNECT_RETRIES, 5).
+-define(DEFAULT_N_CONNECT_RETRIES, 0).
%%% In certain places in the server, calling io:format hangs everything,
%%% so we'd better use erlang:display/1.