Skip to content

Conversation

@softhack007
Copy link
Member

validate NTP responses (fixes #3515)

  • purge old (not yet processes) NTP responses
  • validate server responses before updating WLED time
  • purge receive buffer when package is rejected (avoids mem leak on esp32)
  • bugfix: trigger NTP query directly when NTP was enabled from UI (previously there could be a delay of up to 12 hours)

@Aircoookie, @blazoncek: Please quickly check this change in your environment before merging into 0_14_1.

* purge old (not yet processes) NTP responses
* validate server responses before updating WLED time
* purge receive buffer when package is rejected (avoids mem leak on esp32)
when NTP got enabled via UI, WLED would wait up to 12 hours before issuing the first NTP request.
@softhack007 softhack007 changed the title NTP validation, and rejecting malformed responses (related to https://github.com/Aircoookie/WLED/issues/3515) NTP validation, and rejecting malformed responses (related to #3515) Nov 20, 2023
Copy link
Contributor

@blazoncek blazoncek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from some indentation it looks ok to me.

@softhack007 softhack007 merged commit 32e724e into 0_14_1 Nov 20, 2023
@softhack007 softhack007 deleted the ntp_errorchecking branch November 20, 2023 20:13
softhack007 added a commit to MoonModules/WLED-MM that referenced this pull request Nov 22, 2023
NTP validation, and rejecting malformed responses (related to wled#3515)
softhack007 added a commit to MoonModules/WLED-MM that referenced this pull request Nov 22, 2023
NTP validation, and rejecting malformed responses (related to wled#3515)
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.

3 participants