Fix: error logged on partial recvmsg() in MSG_DONTWAIT
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Dec 2018 19:01:08 +0000 (14:01 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Jan 2019 22:56:28 +0000 (17:56 -0500)
commitc2e8c3663b99ba900f4733696c70e7a5e32ae1a7
tree3473736175d112b5278bce2e783854ed82ccbf0c
parent2a1135fa25ad1fcad3b395e795aa6d41afc90c54
Fix: error logged on partial recvmsg() in MSG_DONTWAIT

The relay daemon logs a "Resource temporarily unavailable" error
message when the lttcomm_recvmsg_inet_sock() is invoked and
no data is left to be consumed from the lttcomm_sock.

The "recvmsg" socket operation is called in a loop by the relay
daemon to consume the data being received in 64k chunks. If, on
one of those iterations, 0 bytes are available, recvmsg() will
return an error (-1, errno = EAGAIN). This should not be
logged in non-blocking mode.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/sessiond-comm/inet.c
This page took 0.025566 seconds and 5 git commands to generate.