X-Spam-Check-By: sourceware.org
Date: Mon, 26 Jun 2006 14:17:55 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: autossh broken with current openssh/cygwin
Message-ID: <20060626121755.GF11077@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <449CAF28.BB172C1A@dessent.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <449CAF28.BB172C1A@dessent.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jun 23 20:19, Brian Dessent wrote:
> 
> I'm not sure if it is due to changes in openssh, or changes in Cygwin,
> but the current autossh package fails to work.  Instead of detecting
> that the connection is alive, it seems to continuously timeout and
> recycle the ssh process.  Here is a representative testcase:
> 
> $ AUTOSSH_FIRST_POLL=5 AUTOSSH_POLL=5 AUTOSSH_DEBUG=yes autossh -M 30000
> -N dessent.net
> autossh: PID 3204: short poll time: adjusting net timeouts to 2500
> autossh: PID 3204: checking for grace period, tries = 0
> autossh: PID 3204: starting ssh (count 1)
> autossh: PID 3204: ssh child pid is 4160
> autossh: PID 4160: execing /usr/bin/ssh
> autossh: PID 3204: check on child 4160
> autossh: PID 3204: set alarm for 5 secs
> autossh: PID 3204: timeout on io poll, looping to accept again

Confirmed.  This has been introduced by trying to get the WinSock event
driven accept thread-safe.  This apparently doesn't work as expected.
To get that really right, a lot more has to be done.  Since that's
nothing I'd like to rip apart before 1.5.20, I reverted all event
handling for accept and connect and returned to using select again, as
it was implemented until 1.5.18.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

