Re: some question about squid source

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 23 Aug 2001 10:54:37 +0200

Squid does not fork. All requests are handled within the same process by
non-blocking I/O.

See Squid FAQ and Programmers Guide for more details.

--
Henrik Nordstrom
Squid Hacker
MARA Systems AB
Sweden
fatemeh bishemar wrote:
> hello,
> thanks for your answer
> my understanding from squid source is:
> squid fork one child and wait for it exit.
> please let me know is squid fork for each client
> request a child?
> or a child process proceess all clients request?
> What happens if during execution of the child process
> another request
> arrives from a client? i know the child reply the
> request.but how does it?
> can it do several request simultaneously.
>
> Henrik Nordstrom wrote:
>
>   fatemeh bishemar wrote:
>
>   > hi all,
>   > I want to find the exact point in squid source
> that
>   > the http reply body retrieved completely.
>
>   There is no such location. The reply body is
> "streamed".
>
> i don't understand you. finally client request should
> be retrived (streamed).
> where is it?
>
>   > 1) I think find it.is it 533 line in http.c file?
>   > 2)does squid do any save operate before it?
>
>   Squid starts saving the reply body as soon as 4KB
> has been received.
>
> please let me know do saving.
> my understanding is:
> in httpReadReply function in http.c squid starts
> reading reply body is that
> correct?
>
>   > 3) how can I find it is a html code or not?
>
>   You should do this by the mime type header. This
> does not require access
>   to
>   the reply body. Squid-2.5 even has built in access
> controls for matching
>   reply headers.
>
> i want to examine reply body and if it is html code
> pass it to my redirector.
> my redirector give html code instead of request url
> and return null for
> allowed page or an url for not allowed page.
>
>   > 4)and after returning from redirector program if
> it's
>   > response is not true where should I go to fetch
>   > another url?
>
>   > 5)where is your archive questions?
>   > thanks for great help.
>
>   See www.squid-cache.org. There is archives for both
> squid-users and
>   squid-devel.
>
>   --
>   Henrik Nordstrom
>   Squid Hacker
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
Received on Thu Aug 23 2001 - 02:54:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:15 MST