Re: rsync over ssh hang issue understood *Revisited*

2015-01-26 Thread Warren Young
On Jan 24, 2015, at 1:44 PM, Sunny digantgo...@gmail.com wrote:

 Christopher Faylor cgf-use-the-mailinglist-
 please at cygwin.com writes:
 
 
 On Fri, Sep 07, 2007 at 09:57:13AM -0500, 
 Jonathan Hurd wrote:
 Sorry to bring back this old thread back. 
 Is there anyone that can explain 
 a fix for this problem. I've only been 
 using rsync/cygwin/on ssh for about 
 3 weeks, so please explain in dummy terms.
 
 It's easy to explain - There is no fix yet.
 
 Any update on this?

You’re resurrecting a 7-year-old thread.  Are you saying this problem persists?

I was under the impression that the old rsync bug was finally squished years 
ago.

If you can reproduce it, we’ll want a simple testcase that lets anyone show the 
problem on their system.
--
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



Re: rsync over ssh hang issue understood *Revisited*

2015-01-24 Thread Sunny
Christopher Faylor cgf-use-the-mailinglist-
please at cygwin.com writes:

 
 On Fri, Sep 07, 2007 at 09:57:13AM -0500, 
Jonathan Hurd wrote:
  Sorry to bring back this old thread back. 
Is there anyone that can explain 
  a fix for this problem. I've only been 
using rsync/cygwin/on ssh for about 
  3 weeks, so please explain in dummy terms.
 
 It's easy to explain - There is no fix yet.
 
 cgf
 
 

Any update on this?




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



Re: rsync over ssh hang issue understood *Revisited*

2007-09-07 Thread Jonathan Hurd
Sorry to bring back this old thread back. Is there anyone that can 
explain a fix for this problem. I've only been using rsync/cygwin/on ssh 
for about 3 weeks, so please explain in dummy terms.


It's the exact same problem mentioned here:


http://cygwin.com/ml/cygwin/2006-04/msg00792.html
--
- Original Message - From: René Berber
Steven Hartland wrote:
Just to back this up, we cant get basic rsync to run reliably
using cygwin either. The command being tested is run from a
FreeBSD box with the source being a cygwin box using cygwin
1.5.19-4:
rsync -av cygwin1:/testdir/ /testdir/


The result is it will randomly hang on a file, no output / error
returned just stops.

[snip]
tcsh6.14.00-5  OK

While testing is csh involved?


Your description above is very close to a problem with cvs reported and 
solved
recently by Jay Abel.  In short, tcsh at the receiving end is changing 
\r\n to
\n inside binary files, so the receiving process waits for the expected 
bytes

but it receives less.

tcsh is the default shell on FreeBSD which is the recieving
end in this test yes but I'm a little confused how the shell
could effect the results of rsync? FreeBSD to FreeBSD for FreeBSD
to Windows SFU doesnt have this issue so something specific to
tcsh on cygwin?


An example of this failure is:
[log]
rsync -av --progress cygwin1:/testdir/ /testdir/
receiving file list ...
1705 files to consider
created directory testdir
/
bf2_w32ded.exe
  0   0%0.00kB/s0:00:00
***Hung here***
^CKilled by signal 2.0.00kB/s0:00:00
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at 
rsync.c(242) [receiver]

rsync error: unexplained error (code 255) at rsync.c(242) [generator]
[/log]
-


Brett Serkez wrote:

After running into the hang trying to use rsync over ssh on Cygwin,
reported on this mailing list, but with no resolution other than use of
daemon mode, I tracked down the problem.  I have rsync working over ssh
on Cygwin.

The hang is occuring when rsync is attempting to exchange protocol
version numbers, it writes its version and then hangs waiting endlessly
for a reply.  The ssh process is detached, and apparently not diretly
connected to rsync, as it is an orphan, owned by process 1.  The ssh
process never even gets as far as attempting network access and rsync
never does anything of value.

Not defining HAVE_SOCKETPAIR in the make configuration is enough to use
pipe() vs. socketpair(), which is enough for rsync to run using ssh,
just as it does on UNIX.  While I've not done extensive testing, I've
used it enough to believe it is working as designed/intended.

The source file that is effected by the above change (primarily) is
util.c in function: fd_pair():

#ifdef HAVE_SOCKETPAIR
ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
#else
ret = pipe(fd);
#endif

While use of socketpair() may be a better method, use of pipe() does
work and I'd request that the rsync package maintainer please rebuild
the package with this build option change and reissue the package so all
can benefit.  Perhaps socketpair() can be used with a future release of
Cygwin?

Thank you,

Brett

Brett C. Serkez, Techie






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



Re: rsync over ssh hang issue understood *Revisited*

2007-09-07 Thread Christopher Faylor
On Fri, Sep 07, 2007 at 09:57:13AM -0500, Jonathan Hurd wrote:
 Sorry to bring back this old thread back. Is there anyone that can explain 
 a fix for this problem. I've only been using rsync/cygwin/on ssh for about 
 3 weeks, so please explain in dummy terms.

It's easy to explain - There is no fix yet.

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/



Re: rsync over ssh hang issue understood *Revisited*

2007-09-07 Thread Jonathan Hurd
It just doesn't make sense how this can work perfectly for about 2 
weeks, and then out of nowhere all sync's start to hang with transfer 
over a certain amount.



Christopher Faylor wrote:

On Fri, Sep 07, 2007 at 09:57:13AM -0500, Jonathan Hurd wrote:
Sorry to bring back this old thread back. Is there anyone that can explain 
a fix for this problem. I've only been using rsync/cygwin/on ssh for about 
3 weeks, so please explain in dummy terms.


It's easy to explain - There is no fix yet.

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/



Re: rsync over ssh hang issue understood *Revisited*

2007-09-07 Thread Larry Hall (Cygwin)

Jonathan Hurd wrote:

Christopher Faylor wrote:

On Fri, Sep 07, 2007 at 09:57:13AM -0500, Jonathan Hurd wrote:
Sorry to bring back this old thread back. Is there anyone that can 
explain a fix for this problem. I've only been using rsync/cygwin/on 
ssh for about 3 weeks, so please explain in dummy terms.


It's easy to explain - There is no fix yet.


 It just doesn't make sense how this can work perfectly for about 2
 weeks, and then out of nowhere all sync's start to hang with transfer
 over a certain amount.


Never underestimate the power of luck.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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