Commit Graph

6 Commits (b07785d2d1b1ed42ea5f863c006f6ee60eceabc2)
 

Author SHA1 Message Date
tiptorrent development team b07785d2d1 activate pending clients only for large files
small files should not activate pending clients, otherwise max_clients
is not fulfilled.
2021-09-29 15:48:03 +02:00
tiptorrent development team 1b890bd11b use off_t instead of size_t for file size
stat() st_size datatype is off_t which is for file size, use off_t
instead of size_t for correctness.
2021-09-29 15:48:00 +02:00
tiptorrent development team a3ea145290 Add ULL postfix to FILE_SIZE_THRESHOLD to avoid using int
Otherwise, cli->size > FILE_SIZE_THRESHOLD uses 32-bit integer which
overflows with very large files. Use ULL to enforce 64-bits.
2021-09-29 15:47:58 +02:00
tiptorrent development team 9523d7d8fd add more logging for easier debugging 2021-09-29 15:47:55 +02:00
tiptorrent development team e72dc5e1cb fix typo in tests/network-setup.sh 2021-09-29 15:47:53 +02:00
tiptorrent development team 2610239d62 initial commit 2021-09-29 15:47:43 +02:00