[PATCH] Fix bug 9412 - SMB2 server doesn't support recvfile.

Jeremy Allison jra at samba.org
Mon Apr 7 15:52:59 MDT 2014

On Mon, Apr 07, 2014 at 03:12:36PM +0200, Stefan (metze) Metzmacher wrote:
> This is not such a rare case, we need to make sure a client doesn't
> trigger a 100% CPU loop.
> I think once we get EAGAIN or EWOULDBLOCK we should turn the socket into
> blocking mode
> (if it's not already) and restore the old state when we're done.

Yep, that was the fix I was planning to do based
on the code from Jones.

> Jeremy, what do you think is the better place to handle this
> sys_sendfile() or the smb2 caller?

In the caller I think.

> Are there're any known VFS modules, which would be impacted?



More information about the samba-technical mailing list