Arvid Norberg
a0ecb10ef8
parameterize some tests over all disk I/O backends
2026-06-13 11:33:29 +02:00
Arvid Norberg
30fa7e7959
add post_file_status() as an asynchronous alternative to file_status()
2026-04-01 00:36:07 +02:00
Arvid Norberg
25c455cb10
add post_file_priorities() to query them asynchronously
2026-03-31 16:53:34 +02:00
arvidn
77eb55f31e
Transition resolving duplicate and invalid filenames to the new structure where torrent_info and file_storage are immutable and renamed files are recorded in a separate structure.
2025-07-15 17:45:39 +02:00
Arvid Norberg
69001184e1
transition more test facilities to use add_torrent_params and load_torrent_buffer() instead of the deprecated use of torrent_info
2025-02-13 16:19:50 +01:00
Arvid Norberg
c5d6934dec
update generate_torrent() test function to return add_torrent_params
2025-02-12 15:42:21 +01:00
arvidn
8e53eba82f
Merge branch 'RC_2_0'
2023-08-26 11:15:27 +02:00
arvidn
6371168c38
add need_save_resume field to torrent_status, with the resume data flags indicating which aspects of a torrent have changed since the last resume data was saved. Also make only_if_modified flag a combination of the other flags.
2023-03-23 13:02:57 +01:00
arvidn
550d3c7d9f
update copyright headers
2022-06-22 21:42:55 +02:00
arvidn
50dbe47d3b
merged RC_2_0 into master
2021-08-28 10:27:25 +02:00
arvidn
e42bfa20cf
merged RC_1_2 into RC_2_0
2021-08-22 12:26:21 +02:00
arvidn
5869c78bc0
work around new windows restriction of which ports are allowed to be used in tests
2021-08-22 09:59:02 +02:00
arvidn
385602ab01
fix warnings in tests
2021-05-31 13:37:07 +02:00
arvidn
0d3f80bedd
update copyright and license headers (of a few new files merged from RC_2_0)
2021-03-29 19:35:45 +02:00
arvidn
6375df4539
merged RC_2_0 into master
2021-03-29 07:38:16 +02:00
arvidn
9b957f6268
use user defined literal for piece_index_t in tests
2021-03-22 14:08:53 +01:00
arvidn
de8e69a795
simplify tests by defining a user defined literal for file_index_t
2021-03-21 03:32:58 +01:00
arvidn
6ca777228c
Merge branch 'RC_1_2' into RC_2_0
2021-03-20 16:39:52 +01:00
arvidn
c850eeaeb3
fix issue with setting file priorities and saving resume data. The need-save-resume flag should not be set until *after* the new file priorities have been applied. Don't set the need-save-resume flag just by loading the resume data (when applying the file priorities into the piece priorities)
2021-03-20 10:35:52 +01:00
arvidn
041d7cbc58
merged RC_2_0 into master
2020-09-19 00:47:01 +02:00
Arvid Norberg
14e334879b
add wrapper around std::ofstream to simplify tests that creates files
2020-09-15 10:37:49 -07:00
arvidn
19e8c2f3ea
remove full BSD license from all source files. reference LICENSE file in the root instead
2020-09-02 00:56:54 -07:00
arvidn
5935f63ead
update copyrights
2020-09-01 05:14:17 -07:00
arvidn
32975be1d0
restore add_torrent_params::info_hash and use add_torrent_params::info_hashes for the new v1 and v2 type
2020-08-16 08:27:20 -07:00
arvidn
63f71a6443
merge RC_1_2 into RC_2_0
2020-06-15 02:44:40 +02:00
arvidn
5e40926ec4
disallow calling add_piece() during checking
2020-06-14 13:25:55 -07:00
arvidn
3b9ef0a100
fix test_priority
2020-06-13 00:16:05 -07:00
Arvid Norberg
0675bd263f
add new socks5_alert to trouble shoot SOCKS5 proxies
2019-12-28 17:57:44 +01:00
Arvid Norberg
8483237c32
merged RC_1_2 into master
2019-12-05 11:59:55 +01:00
arvidn
b5790b982b
fix issue of rapid calls to file_priority() clobbering each other
2019-12-04 22:04:13 +01:00
arvidn
3e47161820
move session_params into its own header/cpp pair
2019-11-30 21:40:01 +01:00
arvidn
d3f7a363c2
update copyright year
2019-08-29 00:13:04 +02:00
Steven Siloti
86be4287d3
add info hash type
2019-08-10 09:28:38 -07:00
arvidn
1b79ce86e1
don't count connections and disconnections to ourself as sign of failure in tests
2019-03-30 10:08:38 +01:00
arvidn
51f77cc0a1
fix printing priorities in test_priority.cpp
2019-03-29 13:14:46 +01:00
arvidn
109db58641
merge RC_1_1 into master
2018-09-25 21:33:29 -07:00
arvidn
6c4d1b9143
back-port the patch to split up the progress_notification alert_mask into three new categories, file-, piece- and block progress
2018-09-24 08:52:30 -07:00
arvidn
4096085bf8
merged RC_1_1 into master
2018-07-30 13:44:44 +02:00
arvidn
19df645012
apply piece priorities immediately, even though file priority updares are async. save both file- and piece priorities in fast resume. when loading, apply file prios first, then piece prios
2018-07-29 21:53:01 +02:00
Arvid Norberg
828c5dd097
merged RC_1_1 into master
2018-07-19 14:37:22 +02:00
Arvid Norberg
5bb5ba145f
fix exporting files from partfile while seeding
2018-07-18 10:56:24 +02:00
Arvid Norberg
3fede4b223
merged RC_1_1 into master
2018-07-08 11:55:32 +02:00
Arvid Norberg
c7e705e158
merged RC_1_1 into master
2018-07-07 13:33:15 +02:00
arvidn
3249b70cbd
fix recent patch to support setting file priorities on torrents that don't have metadata yet
2018-07-07 11:34:11 +02:00
d-komarov
6d5a6f05ad
Fix torrent files prioritization ( #3133 )
...
After setting file priority, any subsequent attempt to set different priorities will fail if there is a `file_priority` job running in in disk thread. This happens because `torrent::m_file_priority` is being updated before adding disk thread job. The problem is gone if the file priority vector owned by the torrent object, is modified in the `torrent::on_file_priority` callback, when disk job finishes.
2018-07-04 08:16:33 +02:00
arvidn
fe612ca167
replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options
2018-05-13 19:25:17 +02:00
Alden Torres
2d3e394226
fixing warnings in tests code, part10, final
2018-02-02 20:59:01 +01:00
Alden Torres
73a7050185
fixing warnings in tests code, part7
2018-01-30 12:34:53 +01:00
Alden Torres
070d1cd61f
fixing warnings in tests code, part5 ( #2736 )
2018-01-28 00:56:21 +01:00
Alden Torres
6d5b90968b
fixing warnings in tests code, part4
2018-01-27 09:18:26 +01:00