Improve the handling of verbose/debug messages
authorWayne Davison <wayned@samba.org>
Wed, 21 Dec 2011 16:30:07 +0000 (08:30 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 21 Dec 2011 20:14:49 +0000 (12:14 -0800)
commit1a2704512a6f6c9bf267042ff8beb50a24e1d057
tree3d382a00614ceacd2411108a2411af307651b44f
parenta3b62ff4cf1175a52c851d196b94aa378976621d
Improve the handling of verbose/debug messages

The sender no longer allows a filelist to be sent in the middle of
parsing an incoming message, so that the directory sending doesn't block
all further input reading.  The generator no longer allows recursive
reading of info/error messages when it is waiting for the message buffer
to flush.  This avoids a stack overflow when lots of messages are coming
from the receiver and the sender is not reading things quickly enough.
The I/O code now avoids sending debug messages that could mess up the
I/O buffer it was in the middle of tweaking.  This fixes an infinite
loop in reduce_iobuf_size() with high levels of debug enabled.  Several
I/O-related messages were changed to output only when --msgs2stderr is
enabled.
io.c
rsync.yo