Skip to content

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

Open
ArneBab wants to merge 11 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 11 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
Copy link
Copy Markdown
Contributor

@Bombe Bombe left a comment

Choose a reason for hiding this comment

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

Guess I have no choice but to approve it now, eh? 😄

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants