From e4ade6803393b275eeee2223b603e85ebbd0bf3a 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 b5f97f0..7445e96 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(); });