Giter Site home page Giter Site logo

Comments (9)

schollz avatar schollz commented on August 25, 2024

how are you measuring the download speed?

from croc.

raimocom avatar raimocom commented on August 25, 2024

I don't. I'm observing the speed and remaining time output of croc at the sending side.

from croc.

schollz avatar schollz commented on August 25, 2024

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.

from croc.

raimocom avatar raimocom commented on August 25, 2024

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

  • --throttleUpload 50000k -> transfer starts after ca. 3 seconds
  • --throttleUpload 5000k -> transfer starts after ca. 30 seconds
  • --throttleUpload 500k -> transfer starts after around 6 minutes

(all times after FILENAME 0% | | ( 0 B/14 GB) [0s:0s] is displayed)

After the download has started, the bandwith usage is always equal to without using --throttleUpload

  • croc send run on a Windows 10 PC
  • croc receive (why does this command not exist?) runs on a Linux Mint PC

from croc.

schollz avatar schollz commented on August 25, 2024

sounds like a bug then, will happily take a pr.

croc receive (why does this command not exist?)

croc receive does not exist, because, on Windows, you can then receive a file just by double-clicking the croc executable (because receiving requires no command line arguments for basic case).

from croc.

raimocom avatar raimocom commented on August 25, 2024

sounds like a bug then, will happily take a pr.

O well, that is way outside my very humble abilities unfortunately.

croc receive (why does this command not exist?)

croc receive does not exist, because, on Windows, you can then receive a file just by double-clicking the croc executable (because receiving requires no command line arguments for basic case).

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.

from croc.

schollz avatar schollz commented on August 25, 2024

You could keep current behaviour and add a (functionalitywise superfluous) receive command.

happy to accept a pr

from croc.

tnothy avatar tnothy commented on August 25, 2024

I believe the invalid throttling is related to this line

rt = rate.Every(time.Second / (4 * time.Duration(uploadLimit)))

After removing the 4 * part, the upload speed seems to be as expected. However, I am unsure why the 4 * was included initially.

from croc.

schollz avatar schollz commented on August 25, 2024

perfect, submit a PR and I can include it in the next release

from croc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.