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 requests optimization #817

Open
AskAlexSharov opened this issue Feb 16, 2023 · 1 comment
Open

DNS requests optimization #817

AskAlexSharov opened this issue Feb 16, 2023 · 1 comment

Comments

@AskAlexSharov
Copy link
Collaborator

It seems that some DNS requests are done every second:
ledgerwatch/erigon#6876 (comment)

Is it possible to optimize it? Probably it's something related to announcement period?

@anacrolix
Copy link
Owner

Yes it is very likely due to announce failures, maybe some of those hosts aren't resolving, in which case it will occur once a minute until it does. One solution might be to wait for longer on DNS failure if that's the case. But also if you are running many simultaneous torrents like I suspect you are, the DNS lookups should be shared anyway. I also answered in ledgerwatch/erigon#6876 (comment) by accident, everything there also applies.

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

No branches or pull requests

2 participants