mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 21:04:15 -04:00
Improve handling of MSG_IO_ERROR message.
This commit is contained in:
1 parent
de6ab501b6
commit
164faae84f
1 file changed
+2
-2
@@ -1405,12 +1405,12 @@ static void read_a_msg(void)
|
||||
got_flist_entry_status(FES_REDO, val);
|
||||
break;
|
||||
case MSG_IO_ERROR:
|
||||
if (msg_bytes != 4 || am_sender)
|
||||
if (msg_bytes != 4)
|
||||
goto invalid_msg;
|
||||
val = raw_read_int();
|
||||
iobuf.in_multiplexed = 1;
|
||||
io_error |= val;
|
||||
if (!am_generator)
|
||||
if (am_receiver)
|
||||
send_msg_int(MSG_IO_ERROR, val);
|
||||
break;
|
||||
case MSG_IO_TIMEOUT:
|
||||
|
||||
Reference in new issue
Block a user