Re: [PATCH net-next] selftests/tls: Fix recv(MSG_PEEK) & splice() test cases

From: David Miller
Date: Tue Oct 02 2018 - 02:19:21 EST


From: Vakul Garg <vakul.garg@xxxxxxx>
Date: Fri, 28 Sep 2018 21:48:08 +0530

> TLS test cases splice_from_pipe, send_and_splice &
> recv_peek_multiple_records expect to receive a given nummber of bytes
> and then compare them against the number of bytes which were sent.
> Therefore, system call recv() must not return before receiving the
> requested number of bytes, otherwise the subsequent memcmp() fails.
> This patch passes MSG_WAITALL flag to recv() so that it does not return
> prematurely before requested number of bytes are copied to receive
> buffer.
>
> Signed-off-by: Vakul Garg <vakul.garg@xxxxxxx>

Applied.