apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@covalent.net>
Subject apr_send() and timeout
Date Mon, 02 Apr 2001 02:34:11 GMT

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
		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.


View raw message