| Previous | Next |
| ESHUTDOWN | ETIMEDOUT |
ETOOMANYREFS
ETOOMANYREFS has a very concrete Linux diagnostic use with UNIX domain sockets. The unix(7) page documents it for sendmsg(2) when sending file descriptors with SCM_RIGHTS: the number of in-flight descriptors exceeds the process limit and the caller lacks CAP_SYS_RESOURCE.
It is therefore not a normal network saturation error. It often means that descriptor-passing backpressure is missing: the sender keeps transferring rights faster than the receiver consumes and closes them. Retrying without draining the receiver can increase the in-flight count again.
Check these first
- How many descriptors are sent per message and whether they are acknowledged by the receiver.
- The sender and receiver
RLIMIT_NOFILEvalues. - Whether the receiver closes descriptors after importing them.
- Whether the sender has
CAP_SYS_RESOURCEand whether relying on it would hide a leak.
Linux unix(7) · Linux sendmsg(2) · Linux errno(3) · Linux UAPI errno definitions
Looking for a different code? Search another status or error code.