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

Stefan (metze) Metzmacher metze at samba.org
Wed Apr 2 12:06:05 MDT 2014

Am 02.04.2014 19:51, schrieb Jeremy Allison:
> On Wed, Apr 02, 2014 at 04:07:10PM +0800, Jones wrote:
>>      2014-04-01 1:22 GMT+08:00 Jeremy Allison <jra at samba.org>:
>>           Try scoping out a loop around the RECVFILE
>>           call to do what I mentioned earlier and
>>           send it in as a proposed patch. If you don't
>>           get time I might have a go at it :-).
>> Hello Jeremy,
>> Not sure if this attached file matches what you mentioned earlier,
>> please kindly help comment,
>> thanks.
> Not quite right I'm afraid, you need to
> catch a RECVFILE return of -1 within the loop.

And turn the socket into blocking mode once we get EAGAIN?


More information about the samba-technical mailing list