Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several changes, see commit details. #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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