Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload blocking mode independently of incoming queries #1310

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Mar 1, 2022

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.

How familiar are you with the codebase?:

10


So far, FTL defers reading the blocking mode until the new query arrived, however, on very quiet systems, there can be a notable gap in between changing the status and FTL picking it up on the next query. This optimization has the side-effect of reporting an incorrect blocking status after changing the status until the next query arrives. This PR changes lazy loading of the blocking status (enabled/disabled) to instantaneous.

The constant RELOAD_BLOCKINGMODE is renamed to RELOAD_BLOCKINGSTATUS because this is what it actually does.

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added the Bugfix label Mar 1, 2022
@DL6ER DL6ER requested a review from a team March 1, 2022 03:33
src/database/database-thread.c Show resolved Hide resolved
src/dnsmasq_interface.c Show resolved Hide resolved
Signed-off-by: Christian König <ckoenig@posteo.de>
@yubiuser yubiuser force-pushed the tweak/blockind_status branch from 2fa54b2 to 29cc882 Compare March 8, 2022 11:59
@yubiuser yubiuser merged commit e62063a into development Mar 8, 2022
@yubiuser yubiuser deleted the tweak/blockind_status branch March 8, 2022 12:02
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-ftl-v5-15-web-v5-12-and-core-v5-10-released/54987/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants