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 
[generator]: 
Connection reset by peer (104)rsync: read error: Connection reset by peer 
(104) 

rsync error: error in rsync protocol data stream (code 12) at io.c(1530) 
[generator=3.0.7] 
rsync error: error in rsync protocol data stream (code 12) at io.c(760) 
[receiver=3.0.7] 

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

#ifdef SHUTDOWN_ALL_SOCKETS
   :
   :
#endif

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

Regards,

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 
http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H
  for additional disclosures.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to