X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 19 Nov 2008 09:54:41 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: rsync 3.0.4 over ssh hanging on cygwin 1.7 Message-ID: <20081119145441.GA11280@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1227077428 DOT 12724 DOT ezmlm AT cygwin DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, Nov 19, 2008 at 07:24:33AM -0500, Brett Serkez wrote: >I spent considerable time on this and reported were the problem is >occurring to no avail, don't waste your time. In a nutshell the issue >is with Cygwin's bi-directional pipe emulation, this is a fundamental >feature of all UNIXies. Secure Shell "forks and execs" rsync, >connecting standard out and in so that data flows over the internet >to/from SSH and then locally to/from rsync. The problem is that >eventually a "signal" is missed and SSH and rsync deadlock, the local >pipe emulation is imperfect, and the rsync protocol has no provision to >recover from this dead lock. > >A fix would require a change to this fundamental feature of Cygwin, it >is not clear to me that Windows has the necessary functionality to >properly implement, such a fix would require extensive retesting. Your analysis of the problem is likely incorrect. The problem has been reported to be due to the fact that there is no foolproof way in Windows to tell when a pipe can be written to in a non-blocking fashion. Since that fact hasn't changed, I doubt that this has anything to do with missed "signal"s and it certainly doesn't have anything to do with bidirectional pipes. Nevertheless, the problem is still there and as always PGA. I have spent a considerable amount of time staring at the code and googling for a solution but to no avail. cgf -- 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/