Am I right to understand that it is the designed intention of apr_send()
to do a best efford write to the network; it retries' on EINTR and under
certain conditions on EAGAIN/EWOULDBLOCK - but basically returns as soon
as something is writen (even if it is not all) - and waits once up till
Timeout if needed.

With this understanding I find that in for example AB I have to
do things like

_sendAll_with_timeout_or_error {
        while(len) {
                set timeout
                if apr_send == error
                        return bang
                len-=send
                calculate new timeout
        };
        return ok
}

Is there a suitable AB function ? Should I add one - as I'd hate to fiddle
with timeout's from outside apr.

Dw

Reply via email to