Skip to content

Development#37

Merged
Doble-2 merged 4 commits into
mainfrom
development
Jun 11, 2026
Merged

Development#37
Doble-2 merged 4 commits into
mainfrom
development

Conversation

@Doble-2

@Doble-2 Doble-2 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

What changed
New rate_limiter.py module:

Per-domain asyncio.Semaphore — limits concurrent requests to the same hostname (default: 3)
Configurable minimum inter-request delay with jitter (default: 200ms ± 100ms)
Exponential backoff on 429/503 responses (1s → 2s → 4s, max 3 retries)
Retry-After header parsing (both seconds and HTTP-date formats)
Config hardening:

sites_max_concurrency cap reduced from 500 → 50
New env vars: OSINT_D2_REQUEST_DELAY_MS, OSINT_D2_REQUEST_JITTER_MS, OSINT_D2_PER_DOMAIN_CONCURRENCY, OSINT_D2_RETRY_MAX_ATTEMPTS
Both runners updated: sherlock_runner.py and site_lists/runner.py now use global semaphore + per-domain semaphore + temporal delay + retry with backoff.

Acceptance criteria met:

✅ Configurable minimum delay with jitter between requests to the same domain
✅ sites_max_concurrency max reduced to 50
✅ Retry-After headers parsed and respected
✅ Documentation warns about responsible concurrency settings
Tests: 37 new tests, 180/180 total passing with zero regressions.

angel and others added 4 commits June 10, 2026 18:06
- Add DomainRateLimiter with per-domain semaphore, delay+jitter, and retry
- Parse and respect Retry-After headers on 429/503 responses
- Exponential backoff: 1s, 2s, 4s with jitter
- Reduce sites_max_concurrency cap from 500 to 50
- New config: request_delay_ms, request_jitter_ms, per_domain_concurrency, retry_max_attempts
- 37 new tests, 180/180 passing

Closes #31
fix: add per-domain rate limiting, jitter, and backoff to scanners
style: remove unused import and variable in test_rate_limiter
@Doble-2 Doble-2 merged commit 1bb2b65 into main Jun 11, 2026
7 checks passed
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.

1 participant