Lines Matching refs:Wd
85 -define(ONE_WD(Wd), jitter(Wd,2000) + 1000).
146 reopen(Test, Wd, N, M) ->
150 [] = run([[reopen, T, Test, Ref, Wd, N, M] || T <- [listen, connect]]).
154 reopen(Type, Test, Ref, Wd, N, M) ->
155 {SvcName, TRef} = start(Type, Ref, cfg(Type, Test, Wd)),
156 reopen(Type, Test, SvcName, TRef, Wd, N, M).
158 cfg(Type, Type, Wd) ->
159 {Wd, [], false};
166 reopen(Type, Type, SvcName, Ref, Wd, N, M) ->
167 ?LOG("node ~p", [[Type, SvcName, Ref, Wd, N, M]]),
300 reopen(Type, _, SvcName, Ref, Wd, N, M) ->
301 ?LOG("peer ~p", [[Type, SvcName, Ref, Wd, N, M]]),
307 reg(Ref, SvcName, {SvcName, {Wd,N,M}}),
574 send(Bin, {Wd, 0 = No, Msg}) ->
576 [{defer, ?ONE_WD(Wd), [msg(Msg, Bin, Origin)]}, fun message/3, No];
579 send(Bin, {Wd, N, Msg}) ->
580 [Bin, fun message/3, {Wd, N-1, Msg}];