apr_socket_sendv: unix: APR_INCOMPLETE_WRITE pre to post processing.

Rather than precomputing requested_len before writev() and later comparing with
what has been sent, we can walk the iovec after only to see if it's exhausted.
This saves useless precomputation on error (e.g. nonblocking EAGAIN) and avoids
a poteential invalid/overflowed requested_len should the iovec point to more
than SIZE_MAX bytes.



git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902314 13f79535-47bb-0310-9956-ffa450edef68
1 file changed