Skip to content

syslog: lock config changes from the settings page - #51

Merged
KrX3D merged 3 commits into
syslogfrom
fix/syslog-lock-config
Nov 26, 2026
Merged

KrX3D merged 3 commits into
syslogfrom
fix/syslog-lock-config

Conversation

@KrX3D

@KrX3D KrX3D commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #46, which already locks every write path; this covers the config path it misses.

  • Syslog.begin() and setAppName() now change host, port, cached IP and app name while holding the syslog lock. handleSettingsSet runs on the AsyncTCP task, so saving settings could race the loop task mid-send or mid-DNS-resolve.
  • set.cpp no longer writes syslogHost/syslogPort directly; it passes the values to begin(), which copies them under the lock.
  • setAppName() skips the String reassignment when the name is unchanged (it is always "WLED").
  • Compiled with WLED_ENABLE_SYSLOG + WLED_DEBUG for esp32dev and nodemcuv2; not tested on a device.

Changelog

🤖 Generated with Claude Code

KrX3D and others added 2 commits November 18, 2026 08:46
handleSettingsSet runs on the AsyncTCP task and rewrote syslogHost,
syslogPort, the cached IP and _appName while the loop task could be
resolving or sending a line with them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from fix/syslog-one-line-per-packet to syslog November 25, 2026 16:30
@KrX3D

KrX3D commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

locally added

@KrX3D
KrX3D merged commit 4711686 into syslog Nov 26, 2026
@KrX3D
KrX3D deleted the fix/syslog-lock-config branch November 26, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant