On Wed, Mar 17, 2010 at 01:16:24PM +0100, Sumit Bose wrote:
Hi,
this patch fixes some issues in the client communication code of the
responders.
The man pages of send() and recv() tell to following:
EAGAIN or EWOULDBLOCK
The socket is marked non-blocking and the requested operation would
block. POSIX.1-2001 allows either error to be returned for this case,
and does not require these constants to have the same value, so a
portable application should check for both possibilities.
So I added a check for EWOULDBLOCK after the calls to send() and recv()
and return EAGAIN to the caller.
The other issues are mentioned in the commit message.
bye,
Sumit
This new version ofthe patch adds EINTR to the list of errors where we
return EAGAIN to the caller.
bye,
Sumit