aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/dist_util.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-06-25 17:43:49 +0200
committerSverker Eriksson <[email protected]>2018-06-28 16:59:18 +0200
commit5cc7a2d51bf0e0c928d94114bbebf85d7d57a9e0 (patch)
treedca553446a8594ec5bffb32e61a3b3fc4cef1aad /lib/kernel/src/dist_util.erl
parentf2c1d537dc28ffbde5d42aedec70bf4c6574c3ea (diff)
downloadotp-5cc7a2d51bf0e0c928d94114bbebf85d7d57a9e0.tar.gz
otp-5cc7a2d51bf0e0c928d94114bbebf85d7d57a9e0.tar.bz2
otp-5cc7a2d51bf0e0c928d94114bbebf85d7d57a9e0.zip
kernel: Send tick to hidden node even if pending writes
as c-nodes need ticks to send ticks.
Diffstat (limited to 'lib/kernel/src/dist_util.erl')
-rw-r--r--lib/kernel/src/dist_util.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/dist_util.erl b/lib/kernel/src/dist_util.erl
index b3507e5d13..86120a5483 100644
--- a/lib/kernel/src/dist_util.erl
+++ b/lib/kernel/src/dist_util.erl
@@ -731,7 +731,7 @@ send_status(#hs_data{socket = Socket, other_node = Node,
%% The detection time interval is thus, by default, 45s < DT < 75s
-%% A HIDDEN node is always (if not a pending write) ticked if
+%% A HIDDEN node is always ticked if
%% we haven't read anything as a hidden node only ticks when it receives
%% a TICK !!
@@ -745,8 +745,8 @@ send_tick(Socket, Tick, Type, MFTick, MFGetstat) ->
case MFGetstat(Socket) of
{ok, Read, _, _} when Ticked =:= T ->
{error, not_responding};
- {ok, Read, W, Pend} when Type =:= hidden ->
- send_tick(Socket, Pend, MFTick),
+ {ok, Read, W, _} when Type =:= hidden ->
+ MFTick(Socket),
{ok, Tick#tick{write = W + 1,
tick = T1}};
{ok, Read, Write, Pend} ->