Skip to content

Add explicit break when resolver pool is small#52

Open
jeteon wants to merge 1 commit into
TheRook:masterfrom
jeteon:patch-1
Open

Add explicit break when resolver pool is small#52
jeteon wants to merge 1 commit into
TheRook:masterfrom
jeteon:patch-1

Conversation

@jeteon
Copy link
Copy Markdown

@jeteon jeteon commented Feb 7, 2017

There is a period during the bootstrapping process (when there are still very few verified servers in resolver_q) and possibly near the end (when the list is exhausted) when a resolver might only have one nameserver. In this case, it will hammer that same resolver query after query with no break. This change puts in an explicit wait for these transient times in order to keep to the implicit contract of not querying the same server more than about once every 5 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant