# Troubleshoot timeouts and connection resets

Diagnose timeouts and ECONNRESET by DNS, TCP, CONNECT, TLS, request and read stages.

Timeouts and reset are network results, not root causes. Specific stages, time taken and whether business requests have been sent must be documented.

## Stage

- DNS Resolver Proxy Host.
- TCP connection proxy port.
- Proxy authentication or CONNECT.
- Target TLS, send requests and read responses.

## Control experiments

- Use the same agent to access simple public targets.
- Replace only the network or reduce only the concurrency.
- Disable connection reuse to authenticate outdated connections.

## Try again safely

- Equal requests limited retries.
- Non-equal requests first confirm whether the service is processed.
- Indexes retreat and set the overall expiration time.

## Evidence

- Record phase, error type, timeout, protocol, and request ID.
- No passwords, cookies or full response text are logged.
