The Samba-Bugzilla – Bug 12838
[PATCH] Log sent/received bytes even in case of error
Last modified: 2018-02-13 20:17:10 UTC
Created attachment 13271 [details]
This patch allows the daemon to log data sent/received even in case of error, which can be interesting to have when the transfer has been interrupted by the client.
Thank you !
Mmmmh unfortunately numbers are not correct.
# Sender side (which interrupts the transfer receiving SIGUSR2) :
Total file size: 16.85G bytes
Total transferred file size: 183.38M bytes
Literal data: 182.32M bytes
# Receiver side :
rsyncd: rsync: connection unexpectedly closed (202529 bytes received so far) [generator]
rsyncd: sent 24749 bytes received 202529 bytes total size 16845198594
Perhaps related to bug #10738 where stats are also not correctly calculated.