| Previous | Next |
| EUCLEAN | ENOTNAM |
ENETRESET
ENETRESET means the network dropped a connection because the transport context was reset. It is not a general “network is down” condition: the failure concerns a connection that existed or was being used when the reset occurred.
When this condition is reached through a Windows portability layer, retain the underlying Winsock or system status as well. The recovery decision depends on protocol phase and idempotency. A request that was fully transmitted but not acknowledged needs different treatment from a connection that failed before application bytes were sent.
Recover from the connection loss deliberately
- Capture connection age, last successful I/O, local and peer endpoints, interface changes, and the application operation in flight.
- Close or retire the affected transport object; do not assume it can resume the old session after a reset.
- Reconnect only when the application protocol can establish a fresh authenticated and synchronized state.
- For retries, store an operation identifier so the remote side can detect duplicates if it received the earlier request.
References
Looking for a different code? Search another status or error code.