118 Commits

Author SHA1 Message Date
175fa33bdc bump version to 2.0.8 2022-10-16 21:29:23 +02:00
c36c81b129 add file_storage alias (file_layout) 2022-09-20 08:15:02 +02:00
74d82a0cd7 tweak pad file placement to match reference implementation (tail-padding) 2022-09-15 13:01:59 +02:00
239f7e6a69 ignore duplicate network interface change notifications on linux 2022-09-08 19:41:24 +02:00
5ad22f9674 introduce setting for using pwrite in mmap_disk_storage 2022-09-05 18:10:41 +02:00
722d78250a bump version to 2.0.7 2022-07-17 09:53:27 -07:00
084219e751 add example: check_files 2022-06-23 16:49:30 +02:00
e3a00498d4 python binding 2022-06-15 13:06:53 +02:00
743f48199c load_torrent 2022-06-15 13:06:53 +02:00
beea19cc91 improve write_torrent_file and extend round-trip test 2022-06-06 12:06:30 +02:00
e9bbf16bdd bump version (2.0.6) 2022-04-16 16:14:50 +02:00
1f39005272 improve copy_file() to preserve sparse regions on systems supporting SEEK_HOLE/SEEK_DATA 2022-02-16 09:07:39 +01:00
eda4baa041 add function to truncate over-sized files part of a torrent 2022-02-14 22:40:33 +01:00
50e118ac6f rename disk_io_job to mmap_disk_job 2022-02-07 11:17:43 +01:00
af20082eb9 fix similar torrents feature for v2 torrents 2022-01-30 15:57:51 +01:00
f545a68c9c merged RC_1_2 into RC_2_0 2022-01-10 00:37:23 +01:00
096544cfd1 factor out test_transfer_matrix into its own test executable 2021-12-08 08:15:36 +01:00
53f90cf6f5 merged RC_1_2 into RC_2_0 2021-12-04 23:09:00 +01:00
3c20db6a1e bump version to 2.0.5 2021-12-01 00:57:20 +01:00
2ceadfb9b7 factor out storage index free list from mmap_disk_io and posix_disk_io 2021-11-08 00:10:35 +01:00
ddaf2ebb06 don't require piece layers in v2 torrent files, but ensure they are valid if they are present 2021-07-23 11:52:32 -07:00
b93a740d92 extend test coverage of adding torrents with various add_torrent_params settings, and fix issue with backwards compatibility of info_hash field 2021-06-21 20:12:58 +02:00
7bc69bdb96 improve piece-picker pad-file granularity to bytes (from blocks) 2021-06-13 11:14:37 +02:00
7f429a0895 fix issue with adding v2 torrents with invalid file root hash 2021-06-11 22:54:23 +02:00
0793c94425 bump version to 2.0.4 2021-06-02 09:17:28 +02:00
face5f0b93 add simulated disk I/O to the simulations, and use it in test_transfers. Add tests exercising the disk full condition, and ensure an auto-managed torrent will eventually recover, once there is disk space available 2021-05-05 14:24:03 +02:00
5b2dd0771b additional tests for loading v2 torrents with empty files 2021-04-23 16:25:31 +02:00
44d4f74c95 add sha256_hash type. add __hash__ member to info_hash_t. add torrent_info constructor overload for a sha256_hash 2021-04-16 00:57:26 +02:00
80affa04f8 make the default build for libtorrent be cxxstd=14 2021-04-10 15:05:08 +02:00
af7a96c1df add security audit documentation 2021-03-28 23:37:08 +02:00
72b9e05f58 raise the severity of peers sending invalid messages to 'peer_error'. Simplify m_upload_only to just record the explicit upload-only state communicated via the extension message. Implied upload only is moved to the upload_only() query. Add simulations for peer connection tests. Mostly for have-all, have-none and bitfields, and some simple invalid requests. This will serve as a platform to add more sophisticated tests. 2021-03-27 21:25:48 +01:00
506f1f93c6 bump version 2021-03-22 00:58:51 +01:00
76fbfd9051 generate convenience header libtorrent/libtorrent.hpp 2021-02-06 21:17:21 +01:00
ac1b534643 merged RC_1_2 into RC_2_0 2021-01-18 09:57:35 +01:00
857a121cfe rely on b2 using all cores by default. simplify scripts to not pass -j 2021-01-07 15:46:49 +01:00
ec9e7ad284 bump version to 2.0.2 2021-01-07 03:16:34 +01:00
d246096ca7 remove travis. update contributing guideline 2021-01-04 19:30:49 +01:00
bb92f6673c merged RC_1_2 into RC_2_0 2021-01-04 14:03:36 +01:00
f726d10891 merged RC_1_2 into RC_2_0 2020-12-03 02:55:59 +01:00
2658c3658c add unit test for store_buffer 2020-11-30 11:30:51 +01:00
37a165def3 add posix_part_file, specific to posix_storage. It uses fopen/fclose and is not thread safe 2020-11-18 03:07:39 +01:00
373b9f8931 bump version to 2.0.1 2020-11-14 20:25:15 +01:00
49ddf02dd0 separate the directory class from file.cpp, into its own file 2020-09-16 05:59:33 -07:00
8ab7b8258b separate directory class from file.hpp. use fopen/fclose/fread in torrent_info, instead of file class. introduce a light abstraction around FILE* 2020-09-12 08:56:50 -07:00
5bdea2c995 split test_hash_picker to have merkle_tree tests in its own file 2020-09-11 17:22:13 -07:00
67a142e7e6 remove boost header included for backwards compatibility with old boost versions 2020-08-31 08:47:48 -07:00
5034d6454a merged RC_1_2 into RC_2_0 2020-08-30 10:38:07 +02:00
dadddb178a add missing includes and missing windows-specific headers to tarball 2020-08-27 06:07:57 -07:00
0f235540d8 fix torrent round-trip for v2 torrents in create_torrent 2020-08-12 00:18:47 -07:00
29f01cd281 remove ConvertUTF.cpp 2020-08-11 14:01:39 -07:00