[PATCH] Fix bug 9412 - SMB2 server doesn't support recvfile.
jones.kstw at gmail.com
Thu Apr 17 00:29:46 MDT 2014
2014-04-17 3:28 GMT+08:00 Jeremy Allison <jra at samba.org>:
> Once the input socket is set to blocking
> mode, then the only way splice() can
> return EAGAIN is if the flag SPLICE_F_NONBLOCK
> is passed into splice - which we don't
> So I can't currently see any way that
> splice can return EAGAIN once the
> input socket is set to blocking mode.
> Are you using a custom splice() call ?
> If not, what kernel are you using so
> I can look at exactly the source code
> you have ?
Yes! Im using a custom splice call,
not just the normal kernel splice.
Look at the sys_recvfile,
the flag SPLICE_F_NONBLOCK is not passed into splice,
but the EAGAIN still returned on my testing.
Hmm maybe this is because the custom kernel part did it,
i would try to dig further,
More information about the samba-technical