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...
- Apache/2.0.22-dev is running on apache.org Greg Ames
- Re: Apache/2.0.22-dev is running on apache.org Cliff Woolley
- Re: Apache/2.0.22-dev is running on apache.... Justin Erenkrantz
- Re: Apache/2.0.22-dev is running on apache.... Jeff Trawick
- Re: Apache/2.0.22-dev is running on apache.... Bill Stoddard
- Re: Apache/2.0.22-dev is running on apa... Aaron Bannert
- Re: Apache/2.0.22-dev is running on... Dirk-Willem van Gulik
- Re: Apache/2.0.22-dev is runni... Jeff Trawick
- Re: Apache/2.0.22-dev is running on apache.org Justin Erenkrantz
- Re: Apache/2.0.22-dev is running on apache.... Jeff Trawick
- Re: Apache/2.0.22-dev is running on apa... Greg Ames
- Re: Apache/2.0.22-dev is running on... Jeff Trawick
- Re: Apache/2.0.22-dev is runni... Jeff Trawick
- Re: Apache/2.0.22-dev is r... Justin Erenkrantz
- Re: Apache/2.0.22-dev ... Jeff Trawick
- Re: Apache/2.0.22-dev ... Justin Erenkrantz
- Re: Apache/2.0.22-dev ... Greg Ames
- Re: Apache/2.0.22-dev is running on apache.... Dirk-Willem van Gulik
- Re: Apache/2.0.22-dev is running on apache.org Jeff Trawick
