From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31723 invoked by alias); 3 Jun 2018 02:34:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 25624 invoked by uid 89); 3 Jun 2018 02:32:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_50,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=alarm, Games, games, restart X-HELO: germ.lanvaux.fr Received: from germ.lanvaux.fr (HELO germ.lanvaux.fr) (184.68.159.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Jun 2018 02:32:02 +0000 Received: from [IPv6:::1] (localhost [IPv6:::1]) by germ.lanvaux.fr (Postfix) with ESMTP id 4FE089001E5; Sat, 2 Jun 2018 19:30:25 +0000 (UTC) Subject: Re: AutoSSH problem To: cygwin@cygwin.com, =?UTF-8?Q?Ren=c3=a9_Berber?= References: <1527971948.18809.ezmlm@cygwin.com> From: Germain Le Chapelain Message-ID: <41cd0c5f-4819-0c14-dde5-a1bea7a1030a@lanvaux.fr> Date: Sun, 03 Jun 2018 02:34:00 -0000 User-Agent: Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1527971948.18809.ezmlm@cygwin.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2018-06/txt/msg00009.txt.bz2 On 06/01/18 23:03, René Berber wrote: > The behavior looks normal. > > Quoting from the autossh man page: > > "Startup behaviour > > If the ssh session fails with an exit status of 1 on the very first try, > autossh > > 1.' will assume that there is some problem with syntax or the connection > setup, and will exit rather than retrying; > > 2.' There is a "starting gate" time. If the first ssh process fails > within the first few seconds of being started, autossh assumes that it > never made it "out of the starting gate", and exits. This is to handle > initial failed authentication, connection, etc. This time is 30 seconds > by default, and can be adjusted (see the AUTOSSH_GATETIME environment > variable below). If AUTOSSH_GATETIME is set to 0, then both behaviours > are disabled: there is no "starting gate", and autossh will restart even > if ssh fails on the first run with an exit status of 1. The "starting > gate" time is also set to 0 when the -f flag to autossh is used. " Thank you for highlighting this point, René. You are right: it "looks" normal, from far :) However, looking closer to the log, you should see (or not, looking back at it it's not obvious) that I halted the connection the server about three minutes in: > 2018/06/01 13:17:41 autossh[20680]: set alarm for 600 secs > Connection to lanvaux.fr closed by remote host. > 2018/06/01 13:20:52 autossh[20680]: check on child 4988 So something still doesn't line up. :/ I may try my dumpo-magic (I think it's actually called "DebugDiag", https://blogs.msdn.microsoft.com/chaun/2013/11/12/steps-to-catch-a-simple-crash-dump-of-a-crashing-process/) But as said earlier it's probably going to poop (no pun intended) about AutoSSH being a cygwin program. I will take a read on how debugging goes on Cygwin, or look at AutoSSH 1.4e (and how to get it.) Kindest regards, Thank you for your answer! -- Germain Le Chapelain Lanvaux Computer Games Limited http://lanvaux.fr -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple