[PATCH] writev_emu: stop on the first incomplete write

Sjoerd Simons sjoerd.simons at collabora.co.uk
Mon Jul 25 19:03:36 CEST 2011


Hey,

See attached patch :). Our library got someone confused in some cases
when the push function couldn't write out, we'd see call traces like
this:

push (X bytes): return Y bytes (Y < X)
push (Z bytes): return -EAGAIN
push (X - Y bytes): abort!

As after an EAGAIN the push function expect to be called again with the
same amount of bytes. 
-- 
Sjoerd Simons <sjoerd.simons at collabora.co.uk>
Collabora Ltd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-writev_emu-stop-on-the-first-incomplete-write.patch
Type: text/x-patch
Size: 916 bytes
Desc: not available
URL: </pipermail/attachments/20110725/c6fb11fe/attachment.bin>


More information about the Gnutls-devel mailing list