rsync 3.0.7 network errors on MS-Windows

andrew.marlow at andrew.marlow at
Wed Jun 2 02:40:52 MDT 2010

I am experiencing intermittent network failures on rsync 3.0.7 built using 
cygwin for Windows-XP (SP2). I am using GCC v4.4.2 and the latext version 
of cygwin.

The rsync error long indicates things like: 

rsync: writefd_unbuffered failed to write 4092 bytes to socket 
Connection reset by peer (104)rsync: read error: Connection reset by peer 

rsync error: error in rsync protocol data stream (code 12) at io.c(1530) 
rsync error: error in rsync protocol data stream (code 12) at io.c(760) 

Googling I see that these problems were put down to the way socket are 
cleaned up in Windows and a fix put in place in cleanup.c, in close_all(). 
But the fix is surrounded by conditional compilation:-


Can someone please explain why that is? Shouldn't the fix just be there 
always, and regardless of which operating system?


Andrew Marlow

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.

Please refer to  for additional disclosures.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list