From 4e9215a920a2d12a8b3d6cd1b3f178835b11896d Mon Sep 17 00:00:00 2001 From: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Date: Tue, 7 Jun 2022 22:44:58 +0200 Subject: [PATCH] chore: more regular keepalive pings (#990) --- waku/v2/node/wakunode2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/v2/node/wakunode2.nim b/waku/v2/node/wakunode2.nim index d6169a220..0bf813ebe 100644 --- a/waku/v2/node/wakunode2.nim +++ b/waku/v2/node/wakunode2.nim @@ -779,7 +779,7 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} = await sleepAsync(keepalive) proc startKeepalive*(node: WakuNode) = - let defaultKeepalive = 5.minutes # 50% of the default chronosstream timeout duration + let defaultKeepalive = 2.minutes # 20% of the default chronosstream timeout duration info "starting keepalive", keepalive=defaultKeepalive