This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]