Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 1997 20:03:50 +0800
From:      Peter Wemm <peter@spinner.DIALix.COM>
To:        "Andrey A. Chernov" <ache@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libc/gen sleep.c 
Message-ID:  <199705171203.UAA22306@spinner.DIALix.COM>
In-Reply-To: Your message of "Sat, 17 May 1997 01:32:43 MST." <199705170832.BAA04063@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey A. Chernov" wrote:
> ache        1997/05/17 01:32:43 PDT
> 
>   Modified files:
>     lib/libc/gen         sleep.c 
>   Log:
>   Temporarily restore old (itimer) sleep variant because new one
>   (nanosleep) breaks Apache httpd badly: his childs died quickly after
>   number of requests (SIGPIPE). To reproduce this bug start
>   gdb /usr/local/sbin/httpd
>   run -X
>   
>   and make some bunch of concurent requests (load the server pages
>   from 3 different places f.e.)
>   After short time httpd dies via SIGPIPE. It never dies with old sleep.c
>   
>   In real life it looks like lots of broken images on the pages or missing
>   pages. Lynx says about Network read error, etc.
>   It seems something wrong in nanosleep signal handling.

Are you sure that this is sleep() related?  I have not been able 
to reproduce this here [yet]...

Do you have rfc1413 (ident) lookups turned on?  There is some highly 
suspicious handling of SIGALRM in there..  In fact, it returns with it's 
own SIGALRM handler active still..  This is definately a bug!!

Cheers,
-Peter





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705171203.UAA22306>