]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
rxgen: Fix rxrpc_send_data()
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Apr 2014 09:42:23 +0000 (10:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 15 Apr 2014 09:59:13 +0000 (10:59 +0100)
commit09cb0b14215a3c51f6de48739d762d917d21e9e6
tree0724d8f7c3b656ff2528ad828c9a8cbfb82a6b25
parent9235dedf92dbeca0a3069417265da5cc609d44da
rxgen: Fix rxrpc_send_data()

Make three Fixes to rxrpc_send_data():

 (1) Advance to the next buffer when filling the iovec array rather than
     endlessly cycling over the first one.

 (2) Only clear MSG_MORE if we have sent all the buffered data at the end of
     the transmission phase of a call.

 (3) Don't turn the return value of sendmsg() into just -1 or 0 as we need the
     number of bytes actually sent to allow us to correctly advance the buffer
     cursor.

Signed-off-by: David Howells <dhowells@redhat.com>
af_rxrpc.c