Skip to content

perf(jarm): coalesce concurrent fingerprints - #331

Merged
ehsandeep merged 4 commits into
mainfrom
codex/jarm-singleflight
Sep 14, 2026
Merged

ehsandeep merged 4 commits into
mainfrom
codex/jarm-singleflight

Conversation

@knakul853

@knakul853 knakul853 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • share overlapping JARM calculations for the same proxy and destination
  • forget results immediately after the active calculation, avoiding completed-result caching
  • preserve every caller and matcher evaluation while removing duplicate sockets
  • honor Aurora and Nuclei's explicit SOCKS5_PROXY scan route before legacy proxy environment variables

Evidence

  • 16 real JARM templates: 128 -> 23 TCP connections (-82.0%)
  • hidden JARM connections: 112 -> 7 (-93.75%)
  • full 279-template controlled run: 60.40s -> 57.20s (-5.3%) after the separate deadline fix
  • go test ./...
  • go test -race ./... -run TestCoalesceJARM -count=10
  • go test -race ./... -run 'Test(CoalesceJARM|JARMProxy)' -count=10

Routing correctness

Aurora exports its scan proxy as SOCKS5_PROXY. The JARM DSL helper previously ignored that variable and could bypass the intended route or fail on an unrelated HTTP proxy variable. The helper now prioritizes uppercase/lowercase SOCKS5 variables while retaining the legacy fallbacks.

Open in Codex: codex://threads/01a07d91-20ab-7a33-81ae-cfd2520595f4
Resume from CLI: codex resume 01a07d91-20ab-7a33-81ae-cfd2520595f4

@knakul853
knakul853 marked this pull request as ready for review September 13, 2026 17:38
@knakul853 knakul853 self-assigned this Sep 13, 2026
@ehsandeep
ehsandeep merged commit bd66475 into main Sep 14, 2026
7 checks passed
@ehsandeep
ehsandeep deleted the codex/jarm-singleflight branch September 14, 2026 20:47
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.

3 participants