Hi Juliusz, If two browsers are downloading the same big file, such as a 600M linux.iso
Say browser A started first, downloaded up to 50M, too big for polipo to hold in memory cache, so a cache file was created. Then browser B starts, the browser B's request will match A's half downloading object. I am not quite understand the code as what the polipo is going to process these two requests. if the polipo privatize the object belong to request A and create a new object for request B, how does B is going to named its cache file? Best Regards, Ming Juliusz Chroboczek wrote: >> 1. When an object is first created, presumably because of a client request, >> is it private or public? >> > > Usually public, except that unshareable objects are made private. > > >> 2. Is it possible that polipo holds two objects that both pointing to the >> same URL? >> > > Yes, but then at least one must be private. That's what happens when > an object becomes superseded -- the old object is privatised, the new > one is public. > > >> 3. What can trigger an object's state to transit between public and private? >> > > Public->private: superseding, expiration. > Private->public: nothing. > > >> 4 What happens when there is a collision to the MD5 hashed filename in the >> cache? >> > > It doesn't happen. > > If it ever did happen, then the new object would cause the old one to > expire (see validateEntry in diskcache.c). > > Juliusz > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Polipo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/polipo-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users
