mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-11 02:48:35 -04:00
For the "unexpected tag" or "multiplexing overflow" messages, we
now output who_am_i() so we know who had the problem.
This commit is contained in:
8
io.c
8
io.c
@@ -679,8 +679,9 @@ static int readfd_unbuffered(int fd, char *buf, size_t len)
|
||||
case MSG_INFO:
|
||||
case MSG_ERROR:
|
||||
if (remaining >= sizeof line) {
|
||||
rprintf(FERROR, "multiplexing overflow %d:%ld\n\n",
|
||||
tag, (long)remaining);
|
||||
rprintf(FERROR,
|
||||
"[%s] multiplexing overflow %d:%ld\n\n",
|
||||
who_am_i(), tag, (long)remaining);
|
||||
exit_cleanup(RERR_STREAMIO);
|
||||
}
|
||||
read_loop(fd, line, remaining);
|
||||
@@ -688,7 +689,8 @@ static int readfd_unbuffered(int fd, char *buf, size_t len)
|
||||
remaining = 0;
|
||||
break;
|
||||
default:
|
||||
rprintf(FERROR, "unexpected tag %d\n", tag);
|
||||
rprintf(FERROR, "[%s] unexpected tag %d\n",
|
||||
who_am_i(), tag);
|
||||
exit_cleanup(RERR_STREAMIO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user