Closed stangri closed 3 years ago
Hi,
1. in scope of #120 the log "No response" was set to warning in commit 40a974 I could lower the level of CURLINFO_OS_ERRNO log as well, but that I need to think through. (From proxys view it's an error, not a warning.) The thing is, that it's logged after every request, not periodically. 2. CPU utilization was fixed in commit 10102f Provided strace shows it perfectly, this commit definitely fixes it.
Updating the package is a great idea, thanks. I would recommend latest commit from master.
@baranyaib90 I believe https://github.com/aarond10/https_dns_proxy/pull/121/commits/10102f166f72668e18079867158f517b7af97394 is included in the OpenWrt package as its date stamp is 2021-06-03 and the commit in question was merged before then.
I'll keep an eye on the update #124 and once it's merged I'll update the binary.
I don't think, that the commit was included, since in the strace it's visible, that the proxy want's to connect to the bootstrap resolvers:
connect(8, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("1.1.1.1")}, 16)
And for that, the delay way 0 seconds (= retry immediatelly) and that was changed to 5 sec, so no endless loop should occur.
Also I did not see any version info in the ticket, that's just an assumption. You could ask for package version info.
in scope of #120 the log "No response" was set to warning in commit 40a974
Thanks, I've tested the latest commit in your fixes-6 branch on OpenWrt and I can confirm that the "No response" messages are gone from the log.
I could lower the level of CURLINFO_OS_ERRNO log as well, but that I need to think through. (From proxys view it's an error, not a warning.)
Yeah, that's still there and it spams the log. For someone trying to troubleshoot why WAN may have gone down it's supper-annoying.
Hi @stangri ! My latest pull request has been merged (#126 ) so from now on every HTTP request issues are now logged on warning level. The proxy won't be chatty anymore if you uplift the OpenWRT package to latest master.
Thanks, I've built the updated package for OpenWrt, I'll try to test sometime this weekend, when it won't interfere with WFH situation. ;)
Thank you, confirm fixed, I'll try to merge an update into OpenWrt asap.
While I was trying to reproduce this: https://github.com/openwrt/packages/issues/16222, I've discovered that with the default verbosity level (as in, non-verbose), once I pull the WAN cable out, the https-dns-proxy is very chatty:
And this continues every second until connection is restored. Also, I've only had a limited opportunity to test it with WAN cable pulled out, but I believe it also caused spikes in CPU utilization (wherever it's from dnsmasq or https-dns-proxy I can't recall sadly). I suspect it very well may lock up the router if left in this state for an extended periods of time.
@baranyaib90 @aarond10 can you gentlemen please also try to reproduce the issue and:
I'll try to update the OpenWrt package to include the restart on wan up asap.
PS. This is with the version 2021-06-03, should I update the OpenWrt package to the commit from June 11th and retest?