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 2, 2024
1 parent 2499b85 commit 6813798
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 6813798

Please sign in to comment.