diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-11-30 12:01:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-11-30 12:28:41 +0100 |
commit | 9e80376cb843be991faf19f8302c215b3adf4072 (patch) | |
tree | 65c9a10b3e38c0ddc6e5adc9f9d56a94e7085872 /src | |
parent | e01a38e4a7dcc9a98b84c8dddce83a062b597db7 (diff) |
remove file size check
in preparation for multiprocessing.
Each process downloads its own chunks, this check cannot be done unless
there is a way to report each process the amount of bytes receives
(via interprocess communication).
Or simply use threads instead of process.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -667,12 +667,6 @@ int main(int argc, char *argv[]) gettimeofday(&tv_stop, NULL); timersub(&tv_stop, &tv_start, &tv); - if (data_len != file_size) { - syslog(LOG_ERR, "Failure, file size is %lu bytes but received %lu bytes!\n", - file_size, data_len); - return EXIT_FAILURE; - } - return tip_client_report(&_cli, &tv, data_len); err_bailout: |