This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Fix for Rsync crashing when used as an rsync server
- From: Dave Hinkle <hinkle at DerbyWorks dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Thu, 26 Sep 2002 13:21:22 -0500
- Subject: Fix for Rsync crashing when used as an rsync server
Well guys, after much pain-full debugging I discovered the source of one of
my Rsync problems. Sometimes select (And maybe other functions?) returns
the error ENOBUFFS. This is mapped from WSAENOBUFS. Which, according to
MSDN, means:
No buffer space available.
An operation on a socket could not be performed because the system lacked
sufficient buffer space or because a queue was full.
Select is expected to return EAGAIN in tempfail situations, so I changed the
mapping in net.cc for WSAENOBUFS to EAGAIN. This cleared up my crashes when
using "rsync --daemon".
I still havn't figured out why rsync hangs over ssh after the
"generate_files phase=1", but I'm going to keep working on it.
Btw, are you guys aware that the cygwin sources don't compile when following
the directions from the web site? I had to make a simlink for the w32api
sources in the winsup directory, remove 3 of the utilities in winsup/utils
from the makefile and delete the docs directory to make it work.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/