Skip to content

fix DNS checks: fast during startup, throttle after first connection#1131

Open
ArneBab wants to merge 8 commits into
hyphanet:nextfrom
ArneBab:reduced-dns-throttling-while-unconnected
Open

fix DNS checks: fast during startup, throttle after first connection#1131
ArneBab wants to merge 8 commits into
hyphanet:nextfrom
ArneBab:reduced-dns-throttling-while-unconnected

Conversation

@ArneBab
Copy link
Copy Markdown
Contributor

@ArneBab ArneBab commented Apr 6, 2026

DNS requests are throttled to reduce visibility of requests on DNS servers.

The throttling caused seednode checks to be delayed by 30s per seed, slowing down initial connection.

The fix reduces the throttling while the node is unconnected and increases the throttling once at least one node is connected.

@ArneBab ArneBab changed the title fix DNS: fast checks during startup, throttle after first connection fix DNS checks: fast during startup, throttle after first connection Apr 6, 2026
DNS requests are throttled to reduce visibility of requests on DNS
servers.

The throttling caused seednode checks to be delayed by 30s per seed,
slowing down initial connection.

The fix reduces the throttling while the node is unconnected and
increases the throttling once at least one node is connected.
@ArneBab ArneBab force-pushed the reduced-dns-throttling-while-unconnected branch from ae918df to 75796db Compare April 6, 2026 21:24
Comment thread test/freenet/node/DNSRequesterTest.java Outdated
import junit.framework.TestCase;

@RunWith(Parameterized.class)
public class DNSRequesterTest extends TestCase {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

TestCase is JUnit 3. Please don’t! 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

arg … killed it off. That was completely unnecessary …

Thank you!

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.

2 participants