Repository navigation
syslog: one complete line per packet, per-task buffering - #46
Merged
Merged
Conversation
Debug prints come from the main loop and the AsyncTCP task, which shared the line buffer and UDP object unguarded, producing garbled and duplicated syslog lines and risking a one-byte buffer overrun. Also drop an unused template placeholder from the injected UI and ignore the script's generated files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR #38 only locked each write() call. All tasks still shared one 128-byte buffer, so a partial line from one task was merged with another task's line, lines over 127 chars were split into several packets, and on ESP8266 nothing was serialized at all. - Collect output per writer (ESP32 task / ESP8266 loop vs SYS context) and send only on newline; long lines are truncated with "..." instead of split - Drop CR so println() no longer produces "#15" - ESP8266: skip DNS lookups from network callbacks, hostByName() would yield in SYS context Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 18, 2026
Owner
Author
|
localy added |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Replaces #38 (includes its commit).
write()calls; all tasks still shared one 128-byte buffer, so partial lines from different tasks were merged and lines over 127 chars were cut into several packets. ESP8266 was not covered at all...., never split.#015), and ESP8266 no longer calls the yieldinghostByName()from network callbacks.Changelog
syslogin (brings syslog UI: match the <div class="sec"> layout of newer settings pages #40); no conflicts, PR diff unchanged.🤖 Generated with Claude Code