Re: Multiple Polipos sharing disk cache

Gabriel Kerneis <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
On Tue, Nov 27, 2012 at 12:28:31PM +0200, [email protected] wrote:
> Which leaves two "bugs"
> 1. Documentation incorrectly states that new cache files can be created with "exclusive open", while
> in reality without cooperative locking on part of Polipo and the process creating the new file,
> there could be race conditions.

Could you give an example of such a race condition?

> 2. Documentation doesn't state how Polipo itself creates (or modifies) cache files. Does it
> use locking? Does it create a temporary file and then rename it?

Looking into diskcache.c indicates that it uses "exclusive open" for disk
entries.

Best,
-- 
Gabriel

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.