-
Notifications
You must be signed in to change notification settings - Fork 4.7k
DNS outbound: Fix some issues #5081
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
Conversation
1ad1d72 to
6a77ced
Compare
6a77ced to
4aca886
Compare
|
|
after connIdle-timeout exceed -> ctx is canceled ->task.run ends ->Process ends ->
so in both case reader is closed and there is no problem. |
|
ready. |
|
also, there is no need for |
|
好好的异步查询响应本来就可以乱序回又突发奇想了是吧。。。 你改点什么就是fix 然后说我fix了好几十个bug |
|
i said there is no need to run in new goroutine,
|
done. |
你optimize了个啥 一个goroutine而已 dns本来就可以乱序处理是对的 就是些无意义改动 |
|
the main bug in this PR was also, there is no need for new goroutines, we should simplify the code. /// also, outbound-dns has Xray-core/infra/conf/dns_proxy.go Line 14 in 19f8907
but this is forgotten in CN-doc, please add it, thx. |
|
@Fangliding is right, because so only |
done and ready.
|
UplinkOnly/DownlinkOnly, after outbound-connection is closed(responsereturned),requestfunction(and as a result inbound-connection) remain open for a long time(especially when the network is TCP)///
we have a weird code in:
Xray-core/proxy/dns/dns.go
Line 393 in 4064f8d
it should be:
return 0, err(dns-query is not sent but we are waiting for a response!)