From 9e80376cb843be991faf19f8302c215b3adf4072 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Wed, 30 Nov 2022 12:01:44 +0100 Subject: 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. --- src/main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main.c b/src/main.c index 6033e8a..984d9b4 100644 --- a/src/main.c +++ b/src/main.c @@ -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: -- cgit v1.2.3-18-g5258