Skip to content

Commit 81e3f3f

Browse files
committed
Disabled Nagle's algorithm
1 parent 66d72b3 commit 81e3f3f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Added
99
- ConnectTimeout property.
1010

11+
### Changed
12+
- Disabled Nagle's algorithm.
13+
1114
## [2.0.1] - 2022-10-11
1215
### Added
1316
- ExceptionCode enum.

PL.Modbus/NetworkStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public override void Open()
6060
_tcpClient = new();
6161
if (!_tcpClient.ConnectAsync(_ipAddress, _port).Wait(ConnectTimeout))
6262
throw new SocketException(10060);
63+
_tcpClient.NoDelay = true;
6364
}
6465
}
6566

0 commit comments

Comments
 (0)