DNS: Add timeoutMs for DnsServerObject#4523
Merged
Conversation
Collaborator
Author
|
also, i want to use government-run DNS "shecan", for all domains unless the domain is blocked, to bypass "sanctioned-websites" in telegram version of Serverless-for-Iran. if the domain is blocked, 2 things can happen:
So if either of these happens, i should use another non-filter dns. because "shecan" is a domestic service i think even 1-2 seconds timeout is too much, but now we have to wait 4 seconds !!! |
Member
|
毫秒为单位的都加上 Ms 吧,比如
|
Member
|
顺便 rebase 一下 |
Collaborator
Author
done. |
Member
|
基于 86a225c rebase 一下 |
Member
|
你可以 push commits 后 reopen 这个 PR |
Collaborator
Author
done. |
timeout for DnsServerObjecttimeoutMs for DnsServerObject
1 task
maoxikun
added a commit
to maoxikun/Xray-core
that referenced
this pull request
Aug 22, 2025
This reverts commit 1067171
it2konst
pushed a commit
to it2konst/gametunnel-core
that referenced
this pull request
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The timeout for each dns is fixed and is 4 seconds.
For some types of dns like doh+fragment, this value may not be enough, but for some other types of dns like udp(freedom), it is too much!
Also, if we want to use fallback, this value is too much. suppose, for example, we have two fallbacks other than the main dns, so it takes 8 seconds to use the second fallback !!!
So the user should be able to decrease or increase this timeout.