X-Spam-Check-By: sourceware.org Date: Fri, 28 Apr 2006 12:42:15 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: rsync over ssh hang issue understood Message-ID: <20060428104215.GL28583@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20060427081642 DOT GA11497 AT calimero DOT vinschen DOT de> <44508D05 DOT 307 AT baltech DOT de> <20060427165032 DOT GA28583 AT calimero DOT vinschen DOT de> <003701c66a2a$2f30b610$b3db87d4 AT multiplay DOT co DOT uk> <20060427184610 DOT GA8203 AT trixie DOT casa DOT cgf DOT cx> <004901c66a2c$ab0d03e0$b3db87d4 AT multiplay DOT co DOT uk> <20060427190910 DOT GB8203 AT trixie DOT casa DOT cgf DOT cx> <007901c66a2f$03c81810$b3db87d4 AT multiplay DOT co DOT uk> <20060428082456 DOT GJ28583 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 Apr 28 06:25, Brett Serkez wrote: > >This is really a tricky problem. What I could do to circumvent this at > >least for connections over ssh is to upload an OpenSSH test version > >which uses socketpairs instead of pipes for the local connection to the > >applications. This avoids using pipes which are the culprit here, > >apparently. I would mark it as experimental version, but actually the > >only difference would be that it would be a few per cent slower than the > >version using pipes. And that it probably doesn't hang. > > It has been so long since I gave up on this that I forgot building my > own version of rsync to do exactly this. > > I've noticed multiple postings indicating issues with pipes. Wouldn't > it be better to track this down, it would likely fix multiple > problems. Sure, you're welcome to do this. It's not exactly a problem to track it down, it's to find a working solution which is the problem. I wouldn't offer the above temporary workaround if we had a solution. The low-level problem is this: Cygwin's select(2) on the write end of pipes always returns that the pipe is writable, since nobody has found a test for the writablility of Windows pipes, which actually works correct. For details see cygwin's source, file select.cc, function peek_pipe. http://cygwin.com/acronyms/#PTC 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/