Error Set RecvMsgError [src]
Errors
The other end closed the socket unexpectedly or a read is executed on a shut down socket
A remote host refused to allow the network connection, typically because it is not running the requested service.
The UDP message was too big for the buffer and part of it has been discarded
The network subsystem has failed.
Reception of SCM_RIGHTS fds via ancillary data in msg.control would exceed some process limit (generally this is retryable by trying to receive fewer fds, closing some existing fds, or changing the ulimit)
The socket has not been bound.
The socket is not connected (connection-oriented sockets only).
Reception of SCM_RIGHTS fds via ancillary data in msg.control would exceed some system limit (generally this is retryable by trying to receive fewer fds or closing some existing fds)
Could not allocate kernel memory.
The Operating System returned an undocumented error code.
This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.
When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.
The socket is marked nonblocking and the requested operation would block, and there is no global event loop configured.
Source
pub const RecvMsgError = RecvFromError || error{
/// Reception of SCM_RIGHTS fds via ancillary data in msg.control would
/// exceed some system limit (generally this is retryable by trying to
/// receive fewer fds or closing some existing fds)
SystemFdQuotaExceeded,
/// Reception of SCM_RIGHTS fds via ancillary data in msg.control would
/// exceed some process limit (generally this is retryable by trying to
/// receive fewer fds, closing some existing fds, or changing the ulimit)
ProcessFdQuotaExceeded,
}