From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 22 Dec 2009 09:55:02 -0500 To: 9fans@9fans.net Message-ID: <635018e058076d45e5d6bcf01860138a@ladd.quanstro.net> In-Reply-To: <> References: <> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Design of webfs and webcookies Topicbox-Message-UUID: b1e4f13a-ead5-11e9-9d60-3106f5b1d025 > Will anything get worse if each cookie is stored in its own file* ? if a site has more than 1 cookie managed as a pair, you could get them out-of-sync by not locking. what's really wanted here is an atomic create/write/close so that one process (we don't care which one) is responsible for the whole file. i think you could get this behavior by creating a temporary keyfile and then an rename (wstat), which is atomic. - erik