<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">The rsync error long indicates things
like:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
rsync: writefd_unbuffered failed to write 4092 bytes to socket [generator]:
<br>
Connection reset by peer (104)rsync: read error: Connection reset by peer
(104)</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
rsync error: error in rsync protocol data stream (code 12) at io.c(1530)
[generator=3.0.7]</font><font size=3> </font><font size=2 face="sans-serif"><br>
rsync error: error in rsync protocol data stream (code 12) at io.c(760)
[receiver=3.0.7]</font><font size=3> </font>
<br>
<br><font size=2 face="sans-serif">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:-</font>
<br>
<br><font size=2 face="sans-serif">#ifdef SHUTDOWN_ALL_SOCKETS</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;:</font>
<br><font size=2 face="sans-serif">#endif</font>
<br>
<br><font size=2 face="sans-serif">Can someone please explain why that
is? Shouldn't the fix just be there always, and regardless of which operating
system?</font>
<br>
<br><font size=2 face="sans-serif">Regards,<br>
<br>
Andrew Marlow<br>
</font><pre>
___________________________________________________________
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.
</pre>