pbr: simplify resolver prefill helper to avoid blocking#55
pbr: simplify resolver prefill helper to avoid blocking#55pesa1234 wants to merge 1 commit intomossdef-org:1.1.9from
Conversation
- drop ubus listener and named pipes (mkfifo) from the dnsmasq resolver prefill helper to avoid potential deadlocks and blocking behaviour - wait directly for pbr nft sets (nft list sets inet | grep pbr) with a bounded timeout before doing any lookups - resolve domains by iterating over $packageDnsmasqFile and calling nslookup <domain> 127.0.0.1 in a simple loop - only run the helper when resolverSetSupported is enabled, the $packageDnsmasqFile exists, and it actually contains at least one domain entry - keep the helper running in a background subshell so pbr startup is not delayed while dnsmasq/policy domains are being resolved Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>
|
@pesa1234 sorry the current dev branch is 1.2.1. Also tagging @betonmischer86 the author of dns-prefetch script. |
|
Hi @pesa1234! The blocking bug is due to the line As for the |
In my situation pbr fail to stop and fail to get service pbr status, when I enable /usr/share/pbr/pbr.user.dnsprefetch.
Openwrt also fail to backup...
After this commit if I enable the script all is back to normal.
Thanks