From 27960f6419825ceb4a4770c985fed8f2561f2607 Mon Sep 17 00:00:00 2001 From: Sebastian Scholz Date: Mon, 2 Sep 2024 20:44:55 +0200 Subject: [PATCH] Enable NoDelay flag on TCP socket --- ports/tcpport.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/tcpport.js b/ports/tcpport.js index 4f7baaf..87e23de 100644 --- a/ports/tcpport.js +++ b/ports/tcpport.js @@ -133,6 +133,7 @@ class TcpPort extends EventEmitter { this._client.on("connect", function() { self.openFlag = true; modbusSerialDebug("TCP port: signal connect"); + self._client.setNoDelay(); handleCallback(); });