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.
multiprocess
tiptorrent development team 2022-11-30 12:01:44 +01:00 committed by Pablo Neira Ayuso
parent e01a38e4a7
commit 9e80376cb8
1 changed files with 0 additions and 6 deletions

View File

@ -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: