Attempt to fix bug 5953: Make cli_send_smb_direct_writeX use writev
authorVolker Lendecke <vl@samba.org>
Mon, 22 Dec 2008 21:32:12 +0000 (22:32 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Jan 2009 11:44:25 +0000 (12:44 +0100)
commit5c7f4b26bc038ad949c81f77a57cc709b4d144f7
tree1219c02ac55f8d3e3739baadf0528d090a985364
parent3713aa0f7ab7109f4bbdad59b8a547c7f254617d
Attempt to fix bug 5953: Make cli_send_smb_direct_writeX use writev

It seems there are SMB servers around which can't cope with the write header
being sent in a packet of its own. With writev we keep the advantage of direct
writes, giving the kernel the chance to coalesce the write calls.
(cherry picked from commit 1cbe293e7ba16968bf0e106cb6ee723a1f31d5bb)
source/libsmb/clientgen.c