Skip to content

perf(backend): bound reverse DNS lookup time on relay details - #626

Merged
JuliusHenke merged 1 commit into
masterfrom
perf/reverse-dns-deadline
Oct 19, 2026
Merged

JuliusHenke merged 1 commit into
masterfrom
perf/reverse-dns-deadline

Conversation

@JuliusHenke

Copy link
Copy Markdown
Member

Run the PTR and forward lookups for the relay details host names on a
small dedicated pool with an overall deadline of 2 s per IP. Host names
that are not verified by then are returned as unverified. When all
lookup threads are busy, the response has no host names and nothing is
cached, so a later request tries again.

Forward lookups now use dnsjava (A/AAAA) like the PTR lookup, with a
1 s query timeout instead of the system resolver defaults.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_013mFejCibtUKMydqfjJdqag

Run the PTR and forward lookups for the relay details host names on a
small dedicated pool with an overall deadline of 2 s per IP. Host names
that are not verified by then are returned as unverified. When all
lookup threads are busy, the response has no host names and nothing is
cached, so a later request tries again.

Forward lookups now use dnsjava (A/AAAA) like the PTR lookup, with a
1 s query timeout instead of the system resolver defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013mFejCibtUKMydqfjJdqag
@JuliusHenke
JuliusHenke merged commit 27f108d into master Oct 19, 2026
11 of 12 checks passed
@JuliusHenke
JuliusHenke deleted the perf/reverse-dns-deadline branch October 19, 2026 08:36
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