From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Remote asynchronous processes Date: Sun, 9 Aug 2020 16:47:29 +0200 Message-ID: References: <87a6zg0yss.fsf@gmx.de> <87eeomoasy.fsf@gmx.de> <87o8nn383p.fsf@iris.silentflame.com> <06B5699B-2F1F-4DB7-BA36-050CB4BFE0C1@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25375"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felipe Lema , Emacs developers , Sean Whitton To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 09 16:48:32 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k4mci-0006WF-JZ for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Aug 2020 16:48:32 +0200 Original-Received: from localhost ([::1]:52916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4mch-0003hl-MU for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Aug 2020 10:48:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4mbv-0003FR-N4 for emacs-devel@gnu.org; Sun, 09 Aug 2020 10:47:43 -0400 Original-Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]:37870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4mbu-0006YX-7x for emacs-devel@gnu.org; Sun, 09 Aug 2020 10:47:43 -0400 Original-Received: by mail-ot1-x32a.google.com with SMTP id e11so5335506otk.4 for ; Sun, 09 Aug 2020 07:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=odL5UV7e6uZnYA5I1QWvUHdDmNbeSiQ0iNnfFGKsANA=; b=FCcfGE4y0FjFXOo0o9UfcuDlXF61+CiTVzTl1LqMI/Y/OH1s/BWvihF0uGEZj7zWAy OXbJJA/fMTk05IZF0TabUffZln85v4yUFmRMw4JPGTBSnR9IRnXvkvxIODGhDCstoFkE 8HTpHdl4hHZbraQ4KjFOR8vJQStI8DGGNJMYo3vDvbrUeBxhB6SQ2zjYADrBQWBw2KnY 9NDjH08I9mIy/HHwDqyfdRfkf4SzBNPf80vrGD2KcnP0uE6ojfjK7Chkj1OkHFbuEZi3 qH1VYIJeUOD15Q2USHaalUjWbGhj+5i+utpjRevkTe1iDgg3ag7xiX09RK/mPE51HsEb WDUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=odL5UV7e6uZnYA5I1QWvUHdDmNbeSiQ0iNnfFGKsANA=; b=GGOHWZE/5C1fIA92n1QXgufoKTuNA8ZCDpSM1pRNQEzlYpojZ6TOLoqpbenrljVzfc CGTqIDbcPUpsTVFnn8MgF9NfxZ0FEbNjHP/fFcaI97UndVDgnKAKCpR1kio0Vx/3GwAc d3Z51fvRwRPno7qlo8F5Cq9Sx9xcM/jqRtV2wJxuMh09+hLp5ksidmG6b2MCnPP78vrn QnHHFJ8YIDaG1foka7RulLJDVO7qXYRtEY8qOtTQ0SYOuREH0buiiAcLgh2htkq8MMqj pyk/vDQmik+ZOyRKrN3CUUW+VCsnC1imLxIQtSdrm+QMF9/aRAA4YPd/Hre3+vQfBnFt XTVQ== X-Gm-Message-State: AOAM531wwasr35/SrX1TCE0ZcQLDiuWiNTseK2gDNnDu+AnGN6NyI/r/ azfq0n2+eCj7B7XnLknsCD2rayPqx5snZIw34A8= X-Google-Smtp-Source: ABdhPJwrkkmavauh6YHb0zlR4GHS6qXJCDtBK9AzB7B806HiDJmkKJX2xFbtIY9HXUXfjen9xe1qVWjrm6TmNnVDXM4= X-Received: by 2002:a9d:2203:: with SMTP id o3mr18813430ota.149.1596984460682; Sun, 09 Aug 2020 07:47:40 -0700 (PDT) In-Reply-To: <06B5699B-2F1F-4DB7-BA36-050CB4BFE0C1@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=p.stephani2@gmail.com; helo=mail-ot1-x32a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253544 Archived-At: Am So., 9. Aug. 2020 um 09:22 Uhr schrieb Michael Albinus : > > > > Am 06.08.2020 um 21:08 schrieb Sean Whitton : > > > > Hello Michael, > > Hi Sean, > > > > >> On Tue 04 Aug 2020 at 02:27PM +02, Michael Albinus wrote: > >> > >> Finally, I've committed a respective patch to Emacs master. Read the > >> Tramp manual (info "(tramp) Improving performance of asynchronous > >> remote processes") about. > > > > I hope you don't mind me replying here to ask a question about this. > > > > Is there a way to turn this on for all SSH connections which don't use > > multi-hops? I.e. all SSH connections originating from localhost with no > > further hops? I imagine this is something a lot of users would want to > > turn on. > > > > I assume it would be unwise to use > > > > (add-to-list 'tramp-connection-properties > > '("\\`/ssh:.+:/" > > "direct-async-process" t)) > > > > or similar, because there can be implicit multi-hops thanks to tramp > > tramp-default-proxies-alist and tramp remembering used proxies. > > That's a good idea. Will implement a fallback to Tramp's "classic" implementation of make-network, when there are multi-hops, or stderr is given. > Why stderr? Does the SSH binary not correctly connect the remote process's stderr to its own?