Apache allows you to configure how long it will wait around for input
from a browser.  This is evident in the directives Timeout and
KeepAliveTimeout.

Timeouts are implemented using the "alarm" function.  When an alarm
goes off a SIGALRM is sent to the program, if the program has a signal
handler registered (to catch this signal), then control is passed to
the handler, otherwise the program will exit.  Your log file indicates
that latter is occurring.  So, why is the signal handler not
registered?

my guess is this:

Apache registers a signal handler when it starts up and never modifies
it again.  Therefore, one of the modules must be unregistering the
signal handler.

I imagine one the modules uses the same alarm mechanism as Apache.
That is: it registers a signal handler for SIGALRM and calls alarm.
When the module is done it simply unregisters its own handle, which
leaves Apache with no handler registered.  Thus, the next alarm that
goes off cause Apache to exit.

so, this is certainly not a mod_ssl bug -- mod_ssl doesn't change
signal handlers (last time I checked).  Modules that do blocking
operations (such as network reads and writes), might use this alarm
mechanism.  mod_auth_samba is the most likely suspect, because it
connects over a server to get some "passwd" file (right?).

You also need to watch out for this problem in your **MOD** perl
scripts.  I believe that some of the perl modules (specifically
Net::FTP), can trounce Apache's signal handler.

--josh


>> I have frequent entries in the error log with exit signals
>> called Alarm clock. Did a search on the apache.org with no
>> luck. Is this mod_ssl related or do I look somewhere else?
>> 
>> Comfig Apache/1.3.6 (Unix) PHP/3.0.7 mod_perl/1.18 mod_ssl/2.2.6 OpenSSL/0.9.2b
>> and mod_auth_samba 1.1
>> 
>> >From error_log
>> [Wed Apr  7 22:37:57 1999] [notice] child pid 2941 exit signal Alarm clock (14)
>> 
>> Do not see any such entries in my Apache/1.3.2 (Unix) mod_ssl/2.0.11
>> SSLeay/0.9.0 mod_perl/1.15_01
>> 
>> Any clue, someone...
>> 
>> /h
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to