-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
--throttleupload option has no effect #730
Comments
how are you measuring the download speed? |
I don't. I'm observing the speed and remaining time output of croc at the sending side. |
The observed speed and remaining time output of croc is related to the original bytes transferred, which is not the same as the bandwidth usage, because of compression. |
I'm transferring a 7z archive, maximum compression. So croc's internal compression has nothing to further compress. So original bytes = bandwith usage, right? One added observation: --throttleUpload has an effect, but an unintended one. It reliably and reproducibly delays the start of the file transfer
(all times after After the download has started, the bandwith usage is always equal to without using --throttleUpload
|
sounds like a bug then, will happily take a pr.
|
O well, that is way outside my very humble abilities unfortunately.
You could keep current behaviour and add a (functionalitywise superfluous) receive command. That would make it a cleaner user interface (one command for every usage scenario) and self explanatory command lines. |
happy to accept a pr |
I believe the invalid throttling is related to this line
After removing the 4 * part, the upload speed seems to be as expected. However, I am unsure why the 4 * was included initially. |
perfect, submit a PR and I can include it in the next release |
Describe the bug
The --throttleUpload option doesn´t seem to throttle the upload speed.
To Reproduce
Steps to reproduce the behavior:
croc --throttleUpload 500k send --code SECRET-CODE-PASS BigFile.zip
croc --code SECRET-CODE-PASS
--> observed download speed way higher than 500k (in this case 2MByte/s)Expected behaviour
Max. upload speed of 500kByte/s
Version
10.0.7
Operating system
Windows 10
The text was updated successfully, but these errors were encountered: