Closed
Issue #1 · created by Peter M. Groen


Disable Nagle's algorithm for TCP

Created by: TrueBrain

By default the kernel has TCP_NODELAY disabled on any socket. This enables Nagle's alrogithm. But for ModBus, that most likely hurts more than it solves, and can (significantly) increase latency.

Can I suggest to set TCP_NODELAY to avoid that problem? That way, when you do a write, the packet is written without delay on the network stack.

Lower latency == more profit, or something :)

Imported comments:

By pgroen on 2023-06-20 14:08:15 UTC

Done. Is added into the branch "encompassing object"


1 participant