| Previous | Next |
| ECANCELED | ECONNREFUSED |
ECONNABORTED
ECONNABORTED identifies a connection terminated locally or by the transport before it completed its expected lifetime. It is different from a peer reset: an abort can result from a local timeout, a transport failure, or a protocol path that gives up before graceful shutdown.
In native Winsock receive code, WSAECONNABORTED indicates that the virtual circuit was terminated and the socket is no longer usable. This page's errno value is a portability-layer name, so logs should retain whether the original status came from recv, connect, an overlapped completion, or application-level cancellation.
What to preserve before closing the socket
- Capture the last successful send and receive timestamps, local and peer endpoints, connection phase, and any application timeout that fired.
- Distinguish an abort before a protocol handshake from an abort during an established session; retry safety is protocol-specific.
- Inspect local firewall, VPN, proxy, and interface events in the same time window before blaming the remote service.
- Release the failed socket object and initiate a new connection when retry is permitted; do not continue protocol I/O on it.
References
Looking for a different code? Search another status or error code.