/[Apache-SVN]
ViewVC logotype

Revision 1902314


Jump to revision: Previous Next
Author: ylavic
Date: Tue Jun 28 11:23:22 2022 UTC (22 months ago)
Changed paths: 1
Log Message:
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.



Changed paths

Path Details
Directoryapr/apr/trunk/network_io/unix/sendrecv.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26