From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39509 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: Protect against servers stepping on each other's toes Date: Fri, 19 Oct 2001 17:49:59 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035175209 28380 80.91.224.250 (21 Oct 2002 04:40:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:40:09 +0000 (UTC) Return-Path: Original-Received: (qmail 13824 invoked from network); 19 Oct 2001 21:50:53 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 19 Oct 2001 21:50:53 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uhWy-0004rm-00; Fri, 19 Oct 2001 16:50:16 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Oct 2001 16:49:52 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA16667 for ; Fri, 19 Oct 2001 16:49:42 -0500 (CDT) Original-Received: (qmail 13805 invoked by alias); 19 Oct 2001 21:50:00 -0000 Original-Received: (qmail 13800 invoked from network); 19 Oct 2001 21:49:59 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmail-remote@129.22.96.25) by gnus.org with SMTP; 19 Oct 2001 21:49:59 -0000 Original-Received: (qmail 23175 invoked by uid 500); 19 Oct 2001 21:50:21 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Fri, 19 Oct 2001 23:35:39 +0200") Original-Lines: 36 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39509 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39509 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) wrote: > If I have two servers using the same directory, there is potential for > the two stepping on each other's toes. I think much of this could be prevented by using different defaults for different backends, or (like nnmaildir does) by requiring the user to explicitly specify a directory in the server parameters. > Here's a suggestion: when a server is first activated, it writes > something special to its directory which says what server `owns' that > directory. Are we trying to protect against two servers in two different Emacsen? If not, we don't need to touch the directory itself. Something internal to Gnus would do. Is this indicator supposed to stay there all the time, or will it be removed when the server is closed? > But even before that, each server looks to see if some other server > has already written that the directory is `owned' by it. When this > happens, a warning is issued or something like that. There's a race condition there. But that's not a problem for two servers in the same Emacs. > Also, maybe we want to put the claiming information inthe active > file. Maybe in the directory _and_ in the active file? Putting it in both wouldn't provide any additional usefullness. Putting it in the active file would mean we aren't protected against other Emacsen, but in that case a nonpersistent variable will do; it doesn't need to be saved anywhere. paul