| Previous | Next |
| ENETDOWN | EADDRINUSE |
EPROTO
Broader than one malformed payload
EPROTO is a protocol error. On Darwin, the system reference describes it as device-specific and generally separate from a hardware failure. The code can reflect an invalid exchange sequence, unsupported transition, broken framing contract, or another state violation in the responsible protocol layer.
Do not diagnose it as “network down” without evidence. Preserve the protocol name, role, connection or device state, last successful transition, and the request that triggered the error. A reconnect may be appropriate for a stateful session, but only after determining whether the peer can have processed the request.
Useful separation
EBADMSGpoints at a bad message; this result can include a bad state transition or protocol contract failure.EPROTONOSUPPORTmeans no implementation for a protocol; this result means a failure while using one.- Retain protocol traces with secrets removed, rather than only the final errno.
References
- Apple XNU: Darwin errno definitions
- Apple system-call reference: EPROTO
- POSIX interface error reporting model
Looking for a different code? Search another status or error code.