X-Spam-Check-By: sourceware.org
Message-ID: <a5f030530604270235r7ae2b072k2306a6b0b69d48bd@mail.gmail.com>
Date: Thu, 27 Apr 2006 05:35:17 -0400
From: "Brett Serkez" <bserkez@gmail.com>
To: cygwin@cygwin.com
Subject: Re: rsync over ssh hang issue understood
In-Reply-To: <20060427081642.GA11497@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <061e01c6694d$18d79e20$a501a8c0@CAM.ARTIMI.COM> 	 <014001c66953$3eeded20$b5db87d4@multiplay.co.uk> 	 <e2ogj9$cnj$1@sea.gmane.org> 	 <01cc01c66968$50acb950$b5db87d4@multiplay.co.uk> 	 <e2okqi$sf9$1@sea.gmane.org> 	 <20060427081642.GA11497@calimero.vinschen.de>
X-IsSubscribed: yes
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k3R9ZWpS024930

Corinna,

<snip>
> <rant> The "rsync hangs" problem is not actually a new one.  We had
> these reports already ages ago.  However, *nobody* so far having that
> problem seem to be willing to actually debug this problem and track it
> down.  Grrr.  </rant>

This is exactly fair, several individuals did their best to debug the
issue.  I recall several detailed investigations, including my own,
looking in detail at the rsync protocol.

As I recall, this problem was tracked as far as the local pipe between
ssh and rsync on the Cygwin end.

When rsync is run on Cygwin, it runs ssh (presumably via popen) in a
'subshell' to start its cooperative rsync on the target and then they
both read and write on their standard in and out in a strict protocol.
  On a UNIX/Linux system the local pipe is handled by the Kernel, on
Windows, Cygwin has to handle this "magic".  It is this "magic" that
eventually fails, the hang occurs when both rsync process are waiting
on a read from each other, perhaps a flushing or missed signal????????

This problem was at this point, waiting for someone more experienced
to diagnose the local pipe.

Brett

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


