X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0	tests=AWL,BAYES_00,TW_CG
X-Spam-Check-By: sourceware.org
Message-ID: <4D3C84AF.2060303@bopp.net>
Date: Sun, 23 Jan 2011 13:42:39 -0600
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: failing to clone a git repo via ssh
References: <4D3BFC69.7080405@cpan.org> <4D3C1D54.7050909@cpan.org> <4D3C8109.4030808@bopp.net> <ACB1C810871A40948D282A600A659A25@multiplay.co.uk>
In-Reply-To: <ACB1C810871A40948D282A600A659A25@multiplay.co.uk>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 01/23/2011 01:37 PM, Steven Hartland wrote:
> ----- Original Message ----- From: "Jeremy Bopp" <jeremy@bopp.net>
>> All of these combinations avoided the early EOFs problem no matter how
>> many times I repeated my testing.  As cgf said, this does appear to be a
>> problem in Cygwin's pipe code, but it's very strange that it only seems
>> to be triggered with Cygwin's git + Cygwin's ssh.  My guess is that
>> there is some kind of race condition in the pipe setup code when both
>> ends of the pipe are Cygwin processes, but I'm admittedly unfamiliar
>> with Cygwin's pipe code.
> 
> Possibly the same issue which still plagues rsync under cygwin?

I've thought the same thing myself, but I don't have any test cases for
that and haven't experienced the problem directly.  As I recall, the
rsync case manifests as a hang which seems a bit different than this
case of unexpected EOFs.  It's possible that it could be rsync's
reaction to the unexpected EOF could mask it as a hang, I suppose.

-Jeremy

--
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

