summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2022-11-30 12:01:44 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-11-30 12:28:41 +0100
commit9e80376cb843be991faf19f8302c215b3adf4072 (patch)
tree65c9a10b3e38c0ddc6e5adc9f9d56a94e7085872
parente01a38e4a7dcc9a98b84c8dddce83a062b597db7 (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.
-rw-r--r--src/main.c6
1 files changed, 0 insertions, 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: