Several changes, see commit details.
Changes
-
In function do_create() change 'a' open mode to 'wb', as 'a' doesn't support unbuffered operation, and "ab" doesn't allow file shrink, only enlarge.
-
Do not create remote file in dry-run mode ('--createdest' option).
-
Server return negative size if remote file doesn't exists. Worker check received value and show error message if it is negative.
-
Send file name and blocksize with separate print(), as filename could contain spaces, so split with not work correct way.
-
Enquote path.
-
Change default ciphering to 'aes128-ctr'. Probably we can just drop that option flag, if cipher is not specified.
-
Change '--compress' option to '--nocompress', as there was no way to switch compression off, which cause significant speed degradation on local network.
Could we get this committed? All these changes are sane.