From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Killing a hung ssh process in a TRAMP session Date: Sun, 17 Jan 2010 11:18:48 -0800 Message-ID: <4B536298.2040908@gmail.com> References: <4B458C2F.9010709@gmail.com> <877hrufgsn.fsf@gmx.de> <4B45FDF7.9080008@gmail.com> <87skahex3w.fsf@gmx.de> <4B4EB86B.2020907@gmail.com> <87bpgsncmn.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263755971 13769 80.91.229.12 (17 Jan 2010 19:19:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Jan 2010 19:19:31 +0000 (UTC) Cc: Emacs mailing list To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 17 20:19:23 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWaeg-0003Kl-Fz for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jan 2010 20:19:22 +0100 Original-Received: from localhost ([127.0.0.1]:38319 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWaeh-0008N8-4x for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jan 2010 14:19:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWaeH-0008Mb-Oq for help-gnu-emacs@gnu.org; Sun, 17 Jan 2010 14:18:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWaeD-0008Lv-DG for help-gnu-emacs@gnu.org; Sun, 17 Jan 2010 14:18:57 -0500 Original-Received: from [199.232.76.173] (port=37253 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWaeD-0008Ls-5S for help-gnu-emacs@gnu.org; Sun, 17 Jan 2010 14:18:53 -0500 Original-Received: from mail-px0-f192.google.com ([209.85.216.192]:33876) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWaeC-000546-Ey for help-gnu-emacs@gnu.org; Sun, 17 Jan 2010 14:18:52 -0500 Original-Received: by pxi30 with SMTP id 30so1527144pxi.14 for ; Sun, 17 Jan 2010 11:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xPpkw0ERZyM/5QhNhFIHXtC9ZmNI2b+a0Yz5bhI9I+w=; b=Mfdz5phZtNL8zGAoCQpLG8Xid+mifIvyiHSQ1G3njO6tYOPDx9ZvPxH4zpXNNCd6hI rHKmo5i3La8GfuUbb5TSNs13TtrD4tHlTFqsOcGdEI4QPo0v7Xz/seS+qMGJauJYwClH Ae7AuGLxHBA0kK5B5zbrDE6mjPuhzVSkn1ZVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=vVws8Ty4o3WulRa2KHqBP5qFMB9JTcCBFiG45mv62lgqypvAbGDBfb1qTpQDyDG/ga g3osVmmuC2L8YoPJTm3sT/IYcbJW1B0qAa/fgVsrz4JoTGWOVpXEfzi5qW1FsBaFKRE+ GQeUEz4SeuXaijrNkJvAA3t4fx1vuCs5QaxBE= Original-Received: by 10.114.189.23 with SMTP id m23mr3579633waf.36.1263755930767; Sun, 17 Jan 2010 11:18:50 -0800 (PST) Original-Received: from bhishma.kuru (d216-232-0-68.bchsia.telus.net [216.232.0.68]) by mx.google.com with ESMTPS id 22sm3592618pzk.6.2010.01.17.11.18.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Jan 2010 11:18:49 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Lightning/1.0pre Thunderbird/3.0 In-Reply-To: <87bpgsncmn.fsf@gmx.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71279 Archived-At: Hi Michael, On Sunday 17 January 2010 04:23 AM, Michael Albinus wrote: > Suvayu Ali writes: >> These are the steps I took to generate the backtrace, after setting >> the variables as you requested. > > I could reproduce it. Unfortunately, there is no simple way to solve it > inside Tramp (but I will continue to investigate). Therefore, I have > added the following item to Tramp's Frequently Asked Questions, HTH: Thank you so much for clarifying this issue. :) > * TRAMP does not recognize hung `ssh' sessions > > When your network connection is down, `ssh' sessions might hang. > TRAMP cannot detect it safely, because it still sees a running > `ssh' process. Timeouts cannot be used as well, because it > cannot be predicted, how long a remote command will last, for > example when copying very large files. > > Therefore, you must configure the `ssh' process to die in such a > case. The following entry in `~/.ssh/config' would do the job: > > Host * > ServerAliveInterval 5 I was thinking something along similar lines, good to see I was on the correct track. :) > Best regards, Michael. Cheers, -- Suvayu Open source is the future. It sets us free.