mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 22:54:07 +00:00
* perf: optimize DNS resolution to reduce request latency by ~31% Replace default dns.lookup (libuv thread pool) with async dns.resolve4/6 (c-ares) that bypasses the thread pool bottleneck, falling back to dns.lookup for /etc/hosts and mDNS hostnames. * fix: address PR review feedback for DNS optimization - Guard against undefined options in fastLookup to prevent runtime errors - Document that options.family is not yet respected (safe today, noted for future) - Replace callback as any with proper typed forwarding wrapper - Extract shared agent config (defaultAgentOptions) to eliminate duplication between axios-instance.ts and agent-cache.ts, with documented rationale - Mock DNS in test to avoid real network calls to google.com in CI * fix: removed explicit resolve6 in fastLookup --------- Co-authored-by: Chirag Chandrashekhar <cchirag85@gmail.com>