Repository navigation
Recommend disabling Nagle's algorithm on the MQTT server - #173
Merged
Merged
Conversation
Most MQTT messages between the manager and the panels are small, and with Nagle's algorithm on, the broker holds each one back until the data before it has been acknowledged. On a real panel this delayed the replies to the subscriptions made when switching rooms by up to ~240 ms. Add a tip to the pre-requisites page recommending turning it off, and how to do it in Mosquitto (set_tcp_nodelay, 2.0+). The panel side is handled in the firmware (NSPManager/NSPanelManager-firmware#59). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tpanajott
approved these changes
Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a tip to Getting started → Pre-requisites recommending that Nagle's algorithm be turned off on the MQTT server, and how to do it in Mosquitto (
set_tcp_nodelay true, 2.0+).Why
Nearly every MQTT message between the manager and the panels is small. With Nagle's algorithm on, TCP holds a small packet back until the data sent before it has been acknowledged, and the other side delays its ACKs, so small messages can wait tens to hundreds of milliseconds.
Measured on one panel switching rooms. The time is from the panel subscribing to a room or entities-page topic until the broker's retained value arrives:
The panel side is handled in the firmware (NSPManager/NSPanelManager-firmware#59). The broker side is a setting users have to change themselves, hence this tip.
Notes
set_tcp_nodelayand refuses to start.🤖 Generated with Claude Code