]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: splice: Don't consider EINVAL to be a fatal error
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 9 Jul 2025 17:05:23 +0000 (19:05 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 20 Aug 2025 16:33:11 +0000 (18:33 +0200)
commit755436920d78f7a5462aa85a85f9dca661c2afbc
treeef485363b8d807684f37046a92abcf68f9f0b708
parented7d20afc8a04563f63dee46ecb12fbc3a3df72a
MEDIUM: splice: Don't consider EINVAL to be a fatal error

Don't consider that EINVAL is a fatal error, when calling splice().
When doing splicing from a kTLS socket, splice() will set errno to
EINVAL if the next record to be read is not an application data record.
This is not a fatal error, it just means we have to use recvmsg() to
read it, and potentially we can then resume using splicing.
It is unfortunate that EINVAL was used for that case, but we should
never get any other case of receiving EINVAL from splice(), so it should
be safe to treat it as non-fatal.
src/raw_sock.c