| Previous | Next |
| ECONNABORTED | ENOBUFS |
ECONNRESET
The peer reset an existing connection
ECONNRESET is an established-connection failure. Solaris describes a connection forcibly closed by the peer, often after a remote timeout or reboot. TCP defines reset processing as a specific connection-state event; a reset is not the same as an orderly close that delivers end-of-stream.
The operation reporting the errno may only be where the local stack observes the reset. The remote event can precede the failing read or write, so application logs should include earlier request/response and idle timing rather than treating the final call as the cause.
Reset diagnostics
- Record whether the reset was observed while sending, receiving, or after an idle interval and preserve the peer address.
- Correlate server restart, timeout, protocol-violation, and load-balancer logs with the same connection.
- Do not blindly reconnect and replay a non-idempotent request unless the application knows whether the peer processed it before reset.
References
- Oracle Solaris intro(2) errno catalog
- RFC 9293 TCP connection state and reset semantics
- POSIX connect() error conditions
Looking for a different code? Search another status or error code.