[squid-users] squid source problem

From: fatemeh bishemar <bishomar@dont-contact.us>
Date: Tue, 21 Aug 2001 23:19:31 -0700 (PDT)

hi,
I read squid source,but I have some problems.
my understandig is that:
"when squid finished initialization(that includes
regestering handler for
each fd for i/o events or read/write from/to socket)
,if it run as a daemon in
background it fork and create a child process that
continue the rest of the
process and parent process wait until child process
exit,and then fork
another child and its go on.
after that child process call eventrun and in taht
functions E link list of the
event will be scanned and the event that its the time
to run will be run and
they remove from link list.until arriving to an event
that its time feild is
greater than current time. then its called nextevent
function that return the
time of the next event then squid pass the time - as
timeout- to the
comm_select function. in this function select system
call will be activated
on all fds(for read write or close)if one fd is ready
its related handler will
be called after time out ocurred its call eventrun
function and go on
until an error occured or shutdown requeted or ... ,
and then the child
exit."
first,Is it true ?if no, what is the machanism?
second,if yes,What happens if during execution of the
child process
another request arrives from a client? Which of the
parent and child will
reply the request?

thanks a lot for your great help.

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
Received on Wed Aug 22 2001 - 00:19:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:53 MST