What can cause a Resource temporarily unavailable error on a socket send() command? The socket is setup as AF_UNIX, SOCK_STREAM. It works most of the time, but occasionally gets this error. The receiving end of the socket appears to be working properly.
I know this isn't very detailed, but I'm just looking for general ideas. Thanks!
"Resource temporarily unavailable" is the error message corresponding to EAGAIN, which means that the operation would have blocked but non-blocking operation was requested. For send(), the operation would ordinarily block when the message won't fit in the send buffer for the socket, and non-blocking operation can be requested by any of:
fcntl(); orMSG_DONTWAIT flag to send(); orSO_SNDTIMEO socket option.