Kenneth Porter wrote at about 20:11:19 -0800 on Sunday, January 23, 2022: > On 1/23/2022 6:52 AM, backu...@kosowsky.org wrote: > > BTW thanks for the help so far... it seems like you really understand > > the rsync code...:) > > Not really. I've just written some network code and lots of > multi-threaded code (which rsync isn't) for embedded systems so can make > educated guesses about it. Single-threaded code for parallel operations > is hard, and this looks like it might be getting stuck in that. (Right > now I'm working on some network code for a Microchip PIC32MZ which is > MIPS-based and the entire "OS" is single-threaded round-robin > processing. So it requires the same kind of thinking.) > > The Android side of the connection looks to be stuck in a similar > write/select loop, which is why I think both are stuck waiting for the > other. > > What's the source of the rsync on Android? What versions are in use? > Perhaps there's a version incompatibility with the one embedded in > rsync_bpc.
Both rsync_bpc and the remote Android host are using rsync 3.1.2 For good measure I tried changing the rsync version on both rsync_bpc and Android to something like 3.0.8 -- and same problem. The rsync android is from Termux I believe -- and it works fine when used with native rsync on my Ubuntu server. Again, the issue only seems to occur when there are more than a few files being synced and it seems like the Android server is getting out ahead of the rsync_bpc client... perhaps there is some time of overflow or lag in rsync_bpc that creates the problem? (I know BackupPC Perl code pretty well but other than compiling rsync, I don't know the C-code details of how rsync_bpc hooks into rsync native code). I'm beginning to wonder whether the problem I am finding here could be the cause of the often unsolved regular reports we get on the mailing list of rsync stalling. The usual answer is to increase the timeout or find the offending file, but I wonder if there is something more fundamental going on here... _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/