Commit Graph
94 Commits
Author SHA1 Message Date
Arvid Norberg c070b9fc5d Merge branch 'RC_2_0' into RC_2_1 2026-05-03 23:13:40 +02:00
Arvid NorbergandArvid Norberg 7a77b2fa40 make parse_magnet_uri() stricter 2026-05-03 02:17:36 +02:00
Mark YuandArvid Norberg d58a75a37d newline at EOF. check url first before setting i2p flag 2026-03-14 07:52:15 +01:00
Mark YuandArvid Norberg d24a774756 add test to allow wss and ws protocol 2026-03-14 07:52:15 +01:00
Mark YuandArvid Norberg 53b8aaf248 add new test to reject invalid tracker url. update existing test to reject invalid tracker urls 2026-03-14 07:52:15 +01:00
Mark YuandGitHub 481c33e9d8 reject invalid tracker urls (#8202) 2026-03-13 11:12:08 +01:00
Arvid NorbergandArvid Norberg a782355cd3 fix issue when saving resume data on a magnet link without metadata 2026-03-07 17:03:35 +01:00
Arvid NorbergandArvid Norberg 35f88190fd fix issue when saving resume data on a magnet link without metadata 2026-03-07 11:21:21 +01:00
Arvid NorbergandArvid Norberg b8c0dba4dd deprecate make_magnet_uri() overloads that take torrent_handle and torrent_info, in favor of add_torrent_params. Also deprecate web seeds being stored in torrent_info 2025-02-15 00:54:09 +01:00
Arvid NorbergandArvid 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 NorbergandArvid Norberg fe2041fbdd transition tests to use load_torrent_buffer() and load_torrent_file() 2025-02-07 10:33:48 +01:00
arvidn 95c386b10a merged RC_2_0 into master 2023-04-01 08:53:33 +02:00
arvidnandArvid Norberg 85a75d37d9 improve handling of allow_i2p_mixed setting to work for magnet links 2023-03-31 17:32:49 +02:00
arvidnandArvid Norberg 7faba9c86d deprecate storing trackers in torrent_info 2023-01-29 13:22:14 +01:00
arvidnandArvid Norberg e65623b317 add a simpler overload to bencode() returning a vector<char> 2022-12-19 02:57:06 +01:00
arvidn 964ffc57ba merge RC_2_0 into master 2022-06-23 08:07:28 +02:00
arvidnandArvid Norberg 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn 7d196867fa merged RC_2_0 into master 2022-06-08 00:30:15 +02:00
arvidnandArvid Norberg 34c75eb5f3 add new overload to make_magnet_uri that takes an add_torrent_params 2022-05-27 09:11:42 +02:00
Arvid Norberg b4b8060f9d merged RC_2_0 into master 2020-12-24 17:32:20 +01:00
arvidn f19669f41e merge RC_1_2 into RC_2_0 2020-12-17 02:44:34 +01:00
arvidnandArvid Norberg 39e156d407 magnet link parameters names are case insensitive 2020-12-13 16:35:42 +01:00
arvidnandArvid Norberg 09838d259b add magnet link unit test with quote (fixed in earlier commit) 2020-12-13 16:35:42 +01:00
arvidnandArvid Norberg 19e8c2f3ea remove full BSD license from all source files. reference LICENSE file in the root instead 2020-09-02 00:56:54 -07:00
arvidnandArvid Norberg 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
arvidnandArvid Norberg 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 3914684dba merged RC_1_2 into RC_2_0 2020-07-09 18:18:58 +02:00
Arvid NorbergandArvid Norberg 1f19d5ab7e reject empty strings as trackers 2020-07-06 01:40:09 +02:00
arvidnandArvid Norberg 6e9f05ab9f restore info_hash() API and name the v2 API info_hashes() 2020-05-30 14:00:24 +02:00
arvidn 9dfff3677f merged RC_1_2 into master 2020-01-18 11:05:07 +01:00
arvidnandArvid Norberg fa79697f45 deprecate (and remove) upnp_ignore_nonrouters setting 2020-01-16 10:35:50 +01:00
arvidnandArvid Norberg f8d4fcc032 introduce read_session_params() and write_session_params(), to save and restore session state. 2019-12-08 13:27:18 +01:00
arvidnandArvid Norberg 3d0bc33d98 deprecate session_flags_t, deprecate session_constructors that take session_flags_t in favor of using session_params. move session constructor definitions into the cpp file. convert session from class to struct 2019-12-01 17:29:48 +01:00
arvidnandArvid Norberg c6ffcdde4c unify the DHT settings to use the main settings_pack 2019-09-01 03:41:57 +02:00
arvidnandArvid Norberg d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
arvidn 86e11142a1 merged RC_1_2 into master 2019-08-10 21:11:10 -07:00
Steven SilotiandArvid Norberg 1988be7ff0 support v2 magnet links 2019-08-10 09:28:38 -07:00
Steven SilotiandArvid Norberg 86be4287d3 add info hash type 2019-08-10 09:28:38 -07:00
Arvid NorbergandArvid Norberg d113816ae6 fix issue where trackers from magnet links were not included in create_torrent() 2019-07-04 12:53:36 +02:00
arvidnandArvid Norberg c8fa08a0da remove one more piece remaining from supporting addding torrents by HTTP URL 2019-04-23 12:40:43 +02:00
arvidnandArvid Norberg f509df655d update naked news to make_unique 2019-02-22 10:48:50 +01:00
arvidn 9263496d5f merged RC_1_2 into master 2019-02-19 18:41:21 +01:00
arvidnandArvid Norberg 1b7884b220 support numeric suffixes to magnet link parameter names 2019-02-15 23:15:38 +01:00
arvidnandArvid Norberg 8305c40d6a make disk_interface the customization point for storage, rather than storage_interface
remove the disk cache
remove trim_cache disk job
remove zero-storage
mark default_storage_constructor as deprecated
remove storage_interface
remove file_pool and default_storage_constructor. update connection_tester to use disk_io_thread.
only ftruncate files once
optimize hashing, by running sha1 directly on the memory mapped file
use boost-multi_index in file_view_pool
remove flush_piece and flush_hashed, simplify job-fence logic, remove prep_read_job_impl
support noatime
split out mmap implementation into a .cpp file
support hashing of content in part files. wraps up new disk storage
remove flush_piece disk job
separate out store_buffer into its own class
pass session_settings into storage operations instead of assigning a pointer in the storage object
use unordered_map in store_buffer
add fopen-based disk io back-end for non-64 bit systems or systems without mmap
factor out open_mode_t into its own header
first stab at windows memory mapped files support
build all of boost for autotools
remove flag in async_read callback handler
remove old open_mode_t, preadv/readv and coalesce buffers
support sparse and no_cache file flags in mmap
Remove use of overlapped I/O because we're no longer doing any scatter/gather syscalls the use of overlapped is an unnecessary complication.
don't explicitly specify global read and write. On MINGW we need to use libtorrent::read and libtorrent::write instead of the MINGW provided ::read and ::write.

If the underlying file is empty then m_mapping is expected to be null.
It is the caller's responsibilty to notice that the region's size is
zero and not dereference it in that case.

Otherwise there is no good way for users of default_storage::open_file
to determine that the opened file is empty.
2019-01-20 18:29:42 +01:00
Arvid NorbergandArvid Norberg 1a27ff7107 parse_magnet_uri simplification 2018-10-05 11:01:45 +02:00
Arvid NorbergandArvid Norberg b90564d418 remove the IPv6 enable/disable build config 2018-08-19 22:20:54 +02:00
arvidnandArvid Norberg 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 TorresandArvid Norberg 070d1cd61f fixing warnings in tests code, part5 (#2736) 2018-01-28 00:56:21 +01:00
Alden TorresandArvid Norberg 8d379dd944 fixing warnings in tests code, part3 2018-01-25 09:09:21 +01:00
arvidnandArvid Norberg ba224a1577 restore the parse_magnet_uri overload that amends an add_torrent_params object 2017-12-14 12:20:02 +01:00