Skip to content

Conversation

@froloffw7
Copy link

Changes

  1. 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.

  2. Do not create remote file in dry-run mode ('--createdest' option).

  3. Server return negative size if remote file doesn't exists. Worker check received value and show error message if it is negative.

  4. Send file name and blocksize with separate print(), as filename could contain spaces, so split with not work correct way.

  5. Enquote path.

  6. Change default ciphering to 'aes128-ctr'. Probably we can just drop that option flag, if cipher is not specified.

  7. Change '--compress' option to '--nocompress', as there was no way to switch compression off, which cause significant speed degradation on local network.

froloffw7 added 2 commits May 4, 2023 11:03
Changes
=======

1. 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.

2. Do not create remote file in dry-run mode ('--createdest' option).

3. Server return negative size if remote file doesn't exists. Worker check received value and show error message if it is negative.

4. Send file name and blocksize with separate print(), as filename could contain spaces, so split with not work correct way.

5. Enquote path.

6. Change default ciphering to 'aes128-ctr'. Probably we can just drop that option flag, if cipher is not specified.

7. Change '--compress' option to '--nocompress', as there was no way to switch compression off, which cause significant speed degradation on local network.
@guppy
Copy link

guppy commented Jul 22, 2023

Could we get this committed? All these changes are sane.

guppy added a commit to guppy/blocksync that referenced this pull request Jul 23, 2023
…heraser#22) and merged in the pieces that don't conflict with my own pull support. I didn't use their wrap function and instead am using shlex.quote.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants