From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [gmane.emacs.devel] Tramp with global-auto-revert-mode. Date: 29 May 2004 01:44:46 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <86y8ngbx1e.fsf@rumba.de.uu.net> <200405270253.i4R2rxf23193@raven.dms.auburn.edu> <86isegimk1.fsf@rumba.de.uu.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085809175 845 80.91.224.253 (29 May 2004 05:39:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 05:39:35 +0000 (UTC) Cc: Luc Teirlinck , Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 29 07:39:27 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTwZ4-0000mv-00 for ; Sat, 29 May 2004 07:39:26 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTwZ4-00048a-00 for ; Sat, 29 May 2004 07:39:26 +0200 Original-Received: from [127.0.0.1] (helo=mailman.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BTwZ8-0003Ji-S8 for emacs-devel@quimby.gnus.org; Sat, 29 May 2004 01:39:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BTwYy-0003Jd-V0 for emacs-devel@gnu.org; Sat, 29 May 2004 01:39:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BTwYx-0003JR-C5 for emacs-devel@gnu.org; Sat, 29 May 2004 01:39:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BTwYx-0003JO-7y for emacs-devel@gnu.org; Sat, 29 May 2004 01:39:19 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BTw58-0001qr-TY for emacs-devel@gnu.org; Sat, 29 May 2004 01:08:31 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by mx20.gnu.org with esmtp (Exim 4.34) id 1BTr3G-0008BK-44 for emacs-devel@gnu.org; Fri, 28 May 2004 19:46:14 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 291F247FE20; Sat, 29 May 2004 01:44:38 +0200 (CEST) Original-To: Kai Grossjohann In-Reply-To: <86isegimk1.fsf@rumba.de.uu.net> Original-Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24137 Kai Grossjohann writes: > storm@cua.dk (Kim F. Storm) writes: > > > I think we have a pretty good understanding of what the problems are > > in this case: GC problems have been fixed, so it remains to fix that > > tramp is not reentrant. > > I would like to discuss the solution with Michael, but I can think of > the following solutions: > > (a) Make Tramp barf on reentrant calls. That would probably break some code which does eg. file-exists-p in a timer hook or some such. So it is not an option. > > (b) Make Tramp wait on reentrant calls (by implementing a queue or > somesuch). I prefer this (because there are problems with the alternatives). > > (c) Implement concurrency for reentrant calls (by opening more than > one connection to the remote end). How do you solve the problem with having to enter passwords or other stuff when invoked from a hook ... and would you start a new thread for every reentant call, that sounds like a lot of processes? Also, tramp is slow at opening a connection (but maybe it can skip some initial checks when it already has another connection to the same host?). -- Kim F. Storm http://www.cua.dk