From 4eee5659d01771417da9ef952274eda359f31c2d Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Thu, 21 Feb 2019 14:49:35 +0100 Subject: 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. --- lib/kernel/src/global.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/kernel/src/global.erl') 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. -- cgit v1.2.3