From 7f4482e9ace035f427ca36d94d9d3ed7a0ac70c3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 28 Apr 2022 14:15:31 +0100 Subject: [PATCH] svc/connect.in: Use new `FORCEKX -quiet' when attempting reconnect. If the remote peer has forgotten us, and we must run a command to reinform it of our existence, then we shouldn't immediately send key- exchange messages because they'll probably be rejected. Instead, use the new `-quiet' option to cancel the cooling-off timer and wait for it to contact us -- similarly to how we used `-cork' when adding the peer in the first place. --- svc/connect.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/connect.in b/svc/connect.in index 9dda65b3..cb640000 100644 --- a/svc/connect.in +++ b/svc/connect.in @@ -445,7 +445,7 @@ class PingPeer (object): peer = Peer(me._peer) if me._connectp or me._knockp: S.warn('connect', 'reconnecting', me._peer) - S.forcekx(me._peer) + S.forcekx(me._peer, quiet = not me._knockp) if me._connectp: T.spawn(run_connect, peer, peer.get('connect')) me._timer = M.SelTimer(time() + me._every, me._time) me._sabotage = False -- 2.11.0