Never send more than IOV_MAX (1024) iovecs in pwritev.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 27 Apr 2013 11:54:52 +0000 (13:54 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 27 Apr 2013 11:54:52 +0000 (13:54 +0200)
commitea11d357cc010351871392e433880fb2401161b2
tree75ea3984f520644747ed9ec55cf4cd8e119c17ae
parent6cb6815facd386521b21c66c35b48ea295dff98e
Never send more than IOV_MAX (1024) iovecs in pwritev.

This fixes issues with “pwritev: Invalid argument” showing up
under rare circumstances. Apparently the glibc wrapper workaround
described in writev(2) does not work, or does not work for pwritev().
stream.cpp