[squid-users] Squid Programmers Guide

2011-09-13 Thread Henry Yuan
Hi, I would like to know a little more about how Squid works in detail, especially the data structures and algorithms it used to chunk and hold large files. I found the Squid Programmers Guide at http://old.squid-cache.org/Doc/Prog-Guide/, which seems to be a good starting point for me to better u

Re: [squid-users] How to clear Squid Cache?

2011-05-05 Thread Henry Yuan
very good... On Wed, May 4, 2011 at 6:10 PM, Amos Jeffries wrote: > On Wed, 4 May 2011 14:33:48 -0500, Henry Yuan wrote: >> >> It seems that the cache is not cleared when squid is restarted. And >> squid -z doesn't seem to clear the cache either. Would someone please

[squid-users] How to clear Squid Cache?

2011-05-04 Thread Henry Yuan
It seems that the cache is not cleared when squid is restarted. And squid -z doesn't seem to clear the cache either. Would someone please provide some suggestion? Thanks, Henry

Re: [squid-users] Cache large file in chunks?

2011-04-29 Thread Henry Yuan
Hi Amos, Thanks for the reply. I have a new question in the content. On Fri, Apr 29, 2011 at 1:01 PM, Amos Jeffries wrote: > On 30/04/11 05:08, Henry Yuan wrote: >> >> Hi, >> >> I'm wondering whether the current squid implementation cache large >> file

[squid-users] Cache large file in chunks?

2011-04-29 Thread Henry Yuan
Hi, I'm wondering whether the current squid implementation cache large files in chunks? Let's say the Squid is downloading a large file A for client 1, when it just finished transferring say 10% of the file, another client, Client 2 asked for the same file A. Will Squid start serve Client 2 immed

[squid-users] What data structure does Squid use to store the cached content?

2011-04-22 Thread Henry Yuan
So let's say it's looking for a http://website/webpage, then a lookup need to be done on "(http://)website/webpage". What data structure does Squid use to store these addresses? Is it something like a hash table? I tried to find it out myself from the source code, but Squid is a fairly not small c

Re: [squid-users] [Problem Solved] Re: Squid didn't cache, but forwarding did work

2011-04-21 Thread Henry Yuan
enry On Tue, Apr 19, 2011 at 7:11 PM, Amos Jeffries wrote: > On Tue, 19 Apr 2011 15:50:48 -0500, Henry Yuan wrote: >> >> Does the http packets need to have some explicit cache header to make >> it be cached? > > Default is to cache. There are headers which prevent cachi

Re: [squid-users] Re: Squid didn't cache, but forwarding did work

2011-04-19 Thread Henry Yuan
s the problem? Thanks, Henry On Tue, Apr 19, 2011 at 2:44 PM, Henry Yuan wrote: > Thanks for the suggestion. But i just added "cache allow all", that didn't > work. > > > > On Tue, Apr 19, 2011 at 1:51 PM, Volker-Yoblick, Adam wrote: >> Pretty sure you nee

Re: [squid-users] Re: Squid didn't cache, but forwarding did work

2011-04-19 Thread Henry Yuan
     cache deny all > > That's what I use in mine. > > -Original Message- > From: Henry Yuan [mailto:forwar...@gmail.com] > Sent: Tuesday, April 19, 2011 2:46 PM > To: squid-users@squid-cache.org > Subject: [squid-users] Re: Squid didn't cache, but forward

[squid-users] Re: Squid didn't cache, but forwarding did work

2011-04-19 Thread Henry Yuan
Does anyone have some suggestions/hints? I have been trying this entire morning.. On Mon, Apr 18, 2011 at 11:20 PM, Henry Yuan wrote: > Hi, > > I got my squid running, and it's forwarding packets to the server on > behalf of its clients. But it seems that squid didn't

[squid-users] Squid didn't cache, but forwarding did work

2011-04-18 Thread Henry Yuan
Hi, I got my squid running, and it's forwarding packets to the server on behalf of its clients. But it seems that squid didn't cache any content as the access log only showed TCP_MISS. Is there something wrong with my configuration file? Thank you in advance. Experiment Setup ===

[squid-users] [Transparent Proxy] Why doesn't the proxy host drop the packets with differnet MAC

2011-04-15 Thread Henry Yuan
Hi folks, A caveat, I don't have practical network management experience, so the following could be totally nonsense ---

[squid-users] Can squid Transparent Proxy listen to the http port directly? And without IPtables

2011-04-14 Thread Henry Yuan
Hi, I'm wondering whether you can set the http_port to be 80 in the squid.conf file to make squid work as a transparent proxy without IPtable. In other words, is configuring the squid machine as an NAT router an requirement for it to work? ( I'm doing a squid experiment for a course project. The