Fix for Rsync crashing when used as an rsync server

Dave Hinkle hinkle@DerbyWorks.com
Thu Sep 26 12:14:00 GMT 2002


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/



More information about the Cygwin mailing list