From 08f3bba334b9b9998cebbf3f4371e28791508827 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Sat, 15 Jul 2023 16:41:26 +0200 Subject: [PATCH] feat: enable TcpNoDelay (#1470) --- waku/v2/node/builder.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/v2/node/builder.nim b/waku/v2/node/builder.nim index 2d301e7163..7dea3ef0a9 100644 --- a/waku/v2/node/builder.nim +++ b/waku/v2/node/builder.nim @@ -151,7 +151,7 @@ proc build*(builder: WakuNodeBuilder): Result[WakuNode, string] = privKey = builder.nodekey, address = builder.netConfig.get().hostAddress, wsAddress = builder.netConfig.get().wsHostAddress, - transportFlags = {ServerFlags.ReuseAddr}, + transportFlags = {ServerFlags.ReuseAddr, ServerFlags.TcpNoDelay}, rng = rng, maxConnections = builder.switchMaxConnections.get(builders.MaxConnections), wssEnabled = builder.netConfig.get().wssEnabled,