You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1da60f
Browse filesBrowse the repository at this point in the historyBrowse files
Share one idle UDP socket budget across pool members (#252)
Each -r pool member had its own UDP dialer with up to 512 idle sockets,
and nothing closed them before the run ended, so a long resolver list
held about one socket per member and could hit file-descriptor limits.
NewPool now gives its members one shared idle budget (512), counted as
sockets enter and leave the idle sets, and Run closes the pool's idle
sockets when the scan ends via the new Pool.CloseIdleConnections.
Fixes#252
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
36
- A name's record types are looked up at the same time instead of one after another, so with the default `A,AAAA` (or more types) a name costs its slowest answer rather than the sum of them, and a timed-out A no longer delays AAAA by the whole `-timeout`. `-rate` still caps the queries per second; results keep the order of `-type` (#250).
37
37
- Passive sources (`-sources`, `-ct`, `Config.Sources`) retry a busy answer (429, 502, 503, 504) or a dropped connection twice, after 2 and 5 seconds or the server's `Retry-After` (at most 30 seconds), within each source's 60-second limit; crt.sh often answers 502 or 503 under load, which used to cost the scan all of its names. A target's sources are now asked at the same time instead of one after another (#271).
38
38
- When the Wayback Machine's answer reaches the 200,000-URL or 64 MiB limit, a note says its results were truncated and some hosts may be missing, the report's `sources` entry (and the MCP report's) is marked `truncated`, `explain_stats` mentions it, and the library sends a `NoticeSource` event; the names it did return are still scanned. It used to stop silently (#272).
39
+
- The members of an `-r` resolver pool share one budget of 512 idle UDP sockets, and a scan closes them when it ends, instead of each member keeping its own sockets for the whole run; a 10k-resolver list could hold 10k sockets open and hit file-descriptor limits (#252).
39
40
- A Wayback Machine answer with one archived URL over 1 MiB skips that line instead of failing and losing every Wayback name (#259).
40
41
- crt.sh's answer is read one entry at a time instead of decoded whole, so memory follows the names rather than the body. An answer that reaches the 64 MiB limit keeps the names read before the cut and is reported as truncated, like Wayback's, instead of failing and losing every CT name (#251).
41
42
- The TUI runs on Bubble Tea v2: `charm.land/bubbletea/v2` v2.1.1, `bubbles/v2` v2.2.1 and `lipgloss/v2` v2.0.6 replace the v1 modules, dropping v1-only helpers that had not had a release in years. Keys, screens and the form work as before; the `go 1.26.0` minimum is unchanged (#188).
***Purpose**: This is the core component responsible for performing the DNS lookups for each candidate name and classifying what happened. It also provides wildcard detection and wire-level rate limiting.
142
142
***Implementation**:
143
143
***Resolver and transports**: `dns.NewResolver` builds a `net.Resolver` with `PreferGo: true` whose `Dial` hook always connects to the configured server through a transport chosen from the `-dns-server` value (`dns.Transport`, `internal/dns/transport.go`):
144
-
*`ip:port` - UDP, with UDP sockets reused between queries; a truncated answer (TC=1) falls back to TCP, which dials per query.
144
+
*`ip:port` - UDP, with UDP sockets reused between queries (at most 512 idle, a budget an `-r` pool shares across its members); a truncated answer (TC=1) falls back to TCP, which dials per query.
145
145
*`tls://host[:853]` - DNS over TLS (RFC 7858), over a small pool of reused TLS connections.
146
146
*`https://host/path` - DNS over HTTPS (RFC 8484), each query sent as an HTTP POST of `application/dns-message`.
0 commit comments