-
Notifications
You must be signed in to change notification settings - Fork 81
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
Problem when the DNS query failed #10
Comments
|
感谢,但是感觉还是治标不治本 |
如果你的目标是永不失败,这是不可能的,这个处理流程我也是大量摸索和学习后才理解的。 |
这的确是一个很好的方案,但是我想知道CPU占用高的原因😂,感觉问题不在于此。 |
重点在 CPU 占用,那么要检查一下协程是否处理好了,一般都是没处理好造成阻塞。 但你这里的问题好像就是我上面讲的流程处理不好造成的,如果没有那个 但是那个 Lines 254 to 260 in 1a9a85d
|
是的,那个 |
才注意你的代理并没有使用协程,这会导致性能问题。
这可能是 aioh2 的问题。 |
考虑到aioh2更新较慢(pypi上的已无法在python3.7运行),doh-proxy亦不活跃,将考虑使用dnscrypt-proxy(支持DoH和dnscrypt协议)作为默认DNS解决方案。 由doh-proxy引起的bug一般情况下将不修复。 当前(v0.6.1)使用dnscrypt-proxy的方法:设置好dnscrypt-proxy后,在Accesser中配置DNS为一resolv.conf格式文件路径,内容为 当前dev分支使用dnscrypt-proxy的方法:把编译好的dnscrypt-proxy放在dnscrypt目录下就行。 |
When the DNS query failed, the program will be blocked, and the CPU usage is high.
5a51a8e is just a temporary solution to avoid DNS query failed. When you want to reappear it, you have to roll it back. And you can test www.tumblr.com as it need many DNS queries.
The text was updated successfully, but these errors were encountered: