Justin Erenkrantz <[EMAIL PROTECTED]> writes:

> On Tue, Jul 24, 2001 at 06:07:03PM -0400, Greg Ames wrote:
> > *  an assert() trap, also in apr_sendfile, for the problem which is
> > responsible for the most core dumps on daedalus (APR_SUCCESS + 0 bytes
> > sent - wtf??), and
> 
> Could this be from sendfile returning EAGAIN?

Presumably, this piece of code I added a while back would take care of
that:

            /* FreeBSD's sendfile can return -1/EAGAIN even if it
             * sent bytes.  Sanitize the result so we get normal EAGAIN
             * semantics w.r.t. bytes sent.
             */
            if (rv == -1 && errno == EAGAIN && nbytes) {
                rv = 0;
            }

We do lots of sendfiles on apache.org but only very occasionally
(never more than once a day, usually much less often) it fails.

-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Reply via email to