# Troubleshoot connection resets

Distinguish between local network, proxy export, target host shutdown, and connection pool reuse issues.

A connection reset indicates that a TCP connection has been closed early on by one party, and needs to be located in combination with the occurrence stage and the repeat condition.

## Positioning phase

- Record reset occurs at connection, authentication, sending request, or read response.
- Use simple public targets to determine if only a specific site is affected.
- Check the local firewall and enterprise gateway logs.

## Client inspection

- Set reasonable connection pool sizes and idle timeouts.
- Do not reuse a connection that has been closed.
- Limit concurrency and avoid large numbers of half-open connections.

## Retry policy

- Limited retries are performed only on parity requests.
- Use the index to evade and randomly shake.
- Non-equivalent operations must be replayed after the business confirms.

## Continuous anomaly

- Saves time, protocol, region, connection stage, and desensitized error stack.
- Do not upload proxy URLs that contain passwords.
