Skip to content
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

dns: limit concurrency when resolving dns names #4596

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

coot
Copy link
Contributor

@coot coot commented Jun 14, 2023

We use two semaphores. One to limit concurrency of dns name resolution of local root peers to at most 2; and another one to limit concurrency for public & ledger peers to at most 8.

@coot coot requested a review from bolt12 June 14, 2023 18:18
@coot coot added the DNS Issues / PRs related to DNS label Jun 14, 2023
@coot
Copy link
Contributor Author

coot commented Jun 14, 2023

Affects: #4585.

@karknu
Copy link
Contributor

karknu commented Jun 15, 2023

LGTM.

Copy link
Contributor

@bolt12 bolt12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just small note

@coot coot force-pushed the coot/dns-limit-concurrency branch 2 times, most recently from 1dde6b6 to f3c3064 Compare June 22, 2023 16:19
@coot coot force-pushed the coot/dns-limit-concurrency branch from f3c3064 to cf29967 Compare June 23, 2023 13:05
@coot coot enabled auto-merge June 23, 2023 13:08
* local root peers
* public root peers
* ledger peers
@coot coot force-pushed the coot/dns-limit-concurrency branch from cf29967 to ca544a9 Compare June 23, 2023 20:47
@coot coot added this pull request to the merge queue Jun 23, 2023
Merged via the queue into master with commit 9f23404 Jun 23, 2023
8 of 11 checks passed
@coot coot deleted the coot/dns-limit-concurrency branch June 23, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNS Issues / PRs related to DNS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants