delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/24/12:54:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 24 Mar 2005 09:53:30 -0800
From: David Rothenberger <daveroth AT acm DOT org>
Subject: Re: ssh-agent people (and others) please try latest snapshot
In-reply-to: <20050324141137.GB2820@cygbert.vinschen.de>
To: cygwin AT cygwin DOT com
Message-id: <4242FE9A.4070800@acm.org>
MIME-version: 1.0
References: <20050323181923 DOT GA9283 AT trixie DOT casa DOT cgf DOT cx> <200503232358 DOT j2NNwuMP021542 AT mx1 DOT redhat DOT com> <20050324141137 DOT GB2820 AT cygbert DOT vinschen DOT de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

--------------enig2122B0040247272A294AFE47
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 3/24/2005 6:11 AM, Corinna Vinschen wrote:
> On Mar 23 15:55, David Rothenberger wrote:
> 
>>This snapshot is not working as well as the 20050322 snapshot for me. I 
>>start ssh-agent, add a key to it, and then run
>>
>>  while true; do date; ssh-add -l; done
>>
>>in four rxvt windows simultaneously. With the previous snapshot this 
>>worked fine. With this snapshot, the loops occasionally all hang up for 
>>a while and then several windows print
>>
>>  Error writing to authentication socket.
>>  Error writing to authentication socket.
>>  The agent has no identities.
> 
> 
> I could reproduce it and apparently the secret event handling isn't quite
> as safe under load as expected.  I reworked the whole secret handhake so
> that a AF_LOCAL/SOCK_STREAM session now always starts with a handshake on
> the socket itself, which exchanges the connect secret and the credentials
> and closes the connection if anything happens.  I've tested this solution
> under heavy load and it only breaks for me now, if the number of sockets
> in the TIME_WAIT state disallows any further connection to the running
> ssh-agent.  In this case you'll get a message:
> 
>   Could not open a connection to your authentication agent.
> 
> This is not a Cygwin problem or only in so far as Cygwin uses AF_INET
> sockets to implement AF_LOCAL sockets.  On my XP Pro system there's an
> upper bound of about 2000 connections in TIME_WAIT, when the above
> message shows up for the first time.
> 
> Please test the next Cygwin snapshot again.

The latest snapshot is working well for me. Thanks!

-- 
David Rothenberger                spammer? -> spam AT daveroth DOT dyndns DOT org
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734


--------------enig2122B0040247272A294AFE47
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCQv6jtE+6Jn9n5zQRAvuwAJ4+61yXfi+BhhE0UFJfGTRa3f0xjgCg3WZf
cE37TUYiKOoLM/c4jb/Bsg0=
=WE/t
-----END PGP SIGNATURE-----

--------------enig2122B0040247272A294AFE47--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019