Hi,
   I am trying to understand the squid source code and I ran into a
   few things. While hashing the objects, squid uses a `private key' 
   and a `public key'. Obviously they are being used for different
   purposes. I can see that the `public key' is being used to lookup 
   the object in the store_table. What is the `private key' used for?
   Also why is that a storeCreateEntry() call is made, irrespective of
   whether the object is already present in the cache or not? My
   understanding was that the `sentry' structure is created once for 
   every object. Obviously, I am wrong.
   Please take a look into how a request is being processed by squid: 
     (The object is already in the cache)
   
Processing Request http://squid.nlanr.net/Squid/
   storeGeneratePublicKey: method=GET url=http://squid.nlanr.net/Squid/
   storeCreateEntry: for http://squid.nlanr.net/Squid/
      storeGeneratePrivateKey: method=GET url=http://squid.nlanr.net/Squid/
Processed Request http://squid.nlanr.net/Squid/
storeGeneratePublicKey: method=HEAD url=http://squid.nlanr.net/Squid/
   As I said, I do not understand the necessesity for calling
   storeCreateEntry() and the call to storeGeneratePrivateKey() 
   within that.
   Also, who is calling the storeGeneratePublicKey() after my 
   icpProcessRequest() is over? Why is it being called?
   I would really appreciate if anybody can solve all my questions.
   Thanks for your time.
- Jayakumar
Received on Tue Aug 25 1998 - 14:27:08 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:41:43 MST