From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Wed, 01 Mar 2023 11:08:16 +0000 Message-ID: <87sfeohgpr.fsf@gmail.com> References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> <87a613f0b7.fsf@gmx.de> <87r0udvmzr.fsf@gmx.de> <878rglxrzm.fsf@gmail.com> <87cz5wmjbx.fsf@gmx.de> <87h6v8f7u9.fsf@gmail.com> <87o7pflfcd.fsf@gmx.de> <87wn43e9ht.fsf@gmail.com> <874jr6oont.fsf@gmx.de> <87sfeqd4zi.fsf@gmail.com> <877cw1swjm.fsf@gmx.de> <7ba1dd627c221d2d716a@heytings.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thomas Koch , Michael Albinus , 61350@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 01 12:07:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pXKIn-0005bj-8b for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 Mar 2023 12:07:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXKIZ-0000aB-Rf; Wed, 01 Mar 2023 06:07:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXKIY-0000Y2-Ot for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 06:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXKIY-0008IG-GC for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 06:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXKIX-0003eW-Hz for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2023 06:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Mar 2023 11:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61350 X-GNU-PR-Package: emacs Original-Received: via spool by 61350-submit@debbugs.gnu.org id=B61350.167766879114003 (code B ref 61350); Wed, 01 Mar 2023 11:07:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 1 Mar 2023 11:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:52842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXKI2-0003dn-Oj for submit@debbugs.gnu.org; Wed, 01 Mar 2023 06:06:31 -0500 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:37392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXKI1-0003dY-8Q for 61350@debbugs.gnu.org; Wed, 01 Mar 2023 06:06:29 -0500 Original-Received: by mail-wm1-f43.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so11542821wms.2 for <61350@debbugs.gnu.org>; Wed, 01 Mar 2023 03:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677668783; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9RnKIaicA45kGf2wLcE0ZI4uz6EUJL8hu1+3rscMFFQ=; b=G6WPUwXH+U5OtGoEMQwoFSN69Y3i2WbNLwGEOqhkraHcxQtz5FZ8X+QdkXkzqgj+Q/ WK+dt75yGi04lUhRNXz2h8f4qb0k5XsXblzrpAVMhdh19X4GtTYfbajd+HDwe8QOiyFY gElz9rry2si+G0F0NwA5z2E5SAczX2GkpCWk8pqiBlO1shZ2ffWu477qhfjUjuBCiU+F nNKYich3kbEI0YlZRBu919CdwFW9tffDTX0sh/45Ox5fNMsrqQIC7Gfs5xjA6X/5/eXz wfosv+PHOREmeNFOln+bKr9UBQcqBhCa1TZh3ot+eOGzaMjsxPaeYepPaLXexDgCcxAj uqgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677668783; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9RnKIaicA45kGf2wLcE0ZI4uz6EUJL8hu1+3rscMFFQ=; b=vC02H7K5AY55lyBLEBw8Rz2yI6575+XcO9prfkvvYvIPnoxQ7tfDN0gCNRPll90eqm 7mjyjugBovPPXf+LaZEVu8Lm8neLD9mymNCBAdKuMTvlFRAHM85dKbh06JQhnfV547JN AIrIyw4wagPWFdDcAZ26+UDcRUpiwX06wN7h5PQL7FDCbhtwUUuZsrf97zpJb2d65Q4Y yPf8MfWADUHit4lFxE9NlYl8PA/GMQGYmTWQ/bGeYmC5PzEVESbfITM95oquCVGuyAsV KfuN7UWhKu0RiFpXSY/YJqEFMUoalqkWQ2iIuGe64dVph5hLg5NqkNahd0FXnIRgb29h 3q2Q== X-Gm-Message-State: AO0yUKUgP+dhOq/UmBAXrCS56+A3x8s6KkFVR/C6BuIOYV1J/p1nPgNQ E2pafflebKTmCSFlnjI2YI58ZD/XiPM= X-Google-Smtp-Source: AK7set8VV8JOELDhPb9l/LRWmKfL6qa0dvlhz1wcMyGveFOo4a4HXnwMiz6AsUSDIacNNPSCc/00FA== X-Received: by 2002:a05:600c:3b28:b0:3eb:2da4:f304 with SMTP id m40-20020a05600c3b2800b003eb2da4f304mr4476249wms.17.1677668782856; Wed, 01 Mar 2023 03:06:22 -0800 (PST) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id l4-20020a05600c4f0400b003df7b40f99fsm20381720wmq.11.2023.03.01.03.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 03:06:22 -0800 (PST) In-Reply-To: <7ba1dd627c221d2d716a@heytings.org> (Gregory Heytings's message of "Wed, 01 Mar 2023 10:46:51 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257046 Archived-At: Gregory Heytings writes: >>> Users, who have set ControlMaster in their ~/.ssh/config (like >>> Thomas), are not satified. For them we need another setting of >>> tramp-use-ssh-controlmaster-options. I'm working on this. >> >> Looking at the Tramp code, I think Thomas's idea of using >> >> -o "ControlMaster=no" -o "ControlPath=none" >> >> would probably be quite effective. >> > > Instead of turning ControlMaster off, I suggest to first try to set > ControlPersist on. The "freeze" problem described here is typical of > multiplexing an ssh connection with ControlMaster set without also > setting ControlPersist. (If you set ControlMaster without also > setting ControlPersist, the socket is closed when the connection by > which it was created is closed, even if other connections are still > using it.) Still hangs. I tried my previously described test with this patch: diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index ec8437176db..f9ac83e4008 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4974,10 +4974,10 @@ tramp-ssh-controlmaster-options (when (zerop (tramp-call-process vec "ssh" nil nil nil - "-G" "-o" "ControlPersist=no" "0.0.0.1")) + "-G" "-o" "ControlPersist=yes" "0.0.0.1")) (setq tramp-ssh-controlmaster-options (concat tramp-ssh-controlmaster-options - " -o ControlPersist=no"))))))) + " -o ControlPersist=yes"))))))) tramp-ssh-controlmaster-options))) (defun tramp-scp-strict-file-name-checking (vec)