Skip to content

Commit

Permalink
Enable NoDelay flag on TCP socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed Sep 3, 2024
1 parent 8cebdda commit d765b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/tcpport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit d765b47

Please sign in to comment.