Commit Graph

354 Commits

Author SHA1 Message Date
Arvid Norberg 23388c17ff add option to send host header in HTTP proxy CONNECT command (#7710)
* add option to send host header in HTTP proxy CONNECT command

* land bearx3f's fix

* fixup
2025-07-18 08:04:57 +02:00
arvidn 4629245993 remove residual code from supporting builds without exceptions 2023-02-01 13:45:54 +01:00
arvidn ceeda1fcee fix flaky tests 2022-09-22 21:40:29 +02:00
arvidn c17b59988a extend create_torrent object with piece_range(), end_piece() and total_size() 2022-09-18 17:13:08 +02:00
arvidn 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn c543e9d6b7 fix warnings 2022-06-18 22:17:51 +02:00
arvidn 0c403745fd test merge RC_1_2 into RC_2_0 2022-02-27 18:44:22 +01:00
arvidn d92ba1561f use a namespace for unit test framework globals rather than reserved identifiers 2022-02-27 17:54:16 +01:00
arvidn 902f5b433b fix use of reserved names 2022-02-14 01:32:27 +01:00
arvidn e17afcc1db fix warning 2021-12-27 12:15:08 +01:00
arvidn 1fd93349fa merged RC_1_2 into RC_2_0 2021-11-28 11:44:17 +01:00
arvidn cd6261f42a fix warnings 2021-11-28 10:37:04 +01:00
arvidn da098b7fe7 merged RC_1_2 into RC_2_0 2021-08-26 07:11:30 +02:00
arvidn 1178e4e0f3 fix msvc warning 2021-08-25 23:11:11 +02:00
arvidn 5b73c7b9a0 fix overflow in test utility to find an available port 2021-06-12 21:29:51 +02:00
arvidn 5715583c4a merged RC_1_2 into RC_2_0 2021-05-23 12:00:32 +02:00
arvidn ff1415fd88 improve TCP listen port selection for tests, to minimize risk of collision 2021-05-21 13:11:05 +02:00
arvidn 9b957f6268 use user defined literal for piece_index_t in tests 2021-03-22 14:08:53 +01:00
arvidn e185832c74 merged RC_1_2 into RC_2_0 2020-12-20 20:56:22 +01:00
arvidn f4d58ae4b3 fix time_now_string to not use a global variable for the returned string 2020-12-19 23:59:07 +01:00
Arvid Norberg fa937b9655 merged RC_1_2 into RC_2_0 2020-11-28 19:59:58 +01:00
Arvid Norberg f617672ef6 make the IPv6 routing table test deterministic, in test_dht 2020-11-27 17:53:15 +01:00
arvidn b2d7e07e1a merged RC_1_2 into RC_2_0 2020-11-09 13:12:14 +01:00
arvidn 8770d10424 test running all tests on windows, and call python with windows-paths 2020-11-01 00:03:25 +01:00
Arvid Norberg 40a8e759b7 merge RC_1_2 into RC_2_0 2020-10-29 12:46:22 +01:00
Arvid Norberg 7b85a05d35 add test for creating hard-links for existing files in other torrents 2020-10-28 23:53:17 +01:00
arvidn f3ed9a9956 merged RC_1_2 into RC_2_0 2020-10-21 11:57:50 +02:00
arvidn 9e71d1a5c2 copy torrent_info objects when added to a session. This is because the internal torrent object (unfortunately) keeps and mutates states in the torrent_info object. If it would use the same object as passed in by the client, that state would be subject to race conditions 2020-10-20 16:29:34 +02:00
arvidn e2a4bdc7fb merged RC_1_2 into RC_2_0 2020-09-18 11:36:00 +02:00
arvidn bc481ae673 add unit test for loading resume data with finished blocks in unfinished pieces 2020-09-17 12:41:47 -07:00
Arvid Norberg 14e334879b add wrapper around std::ofstream to simplify tests that creates files 2020-09-15 10:37:49 -07:00
arvidn 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
arvidn 6ea0273a63 improve randomness of port selection for web python script in tests, to minimize collisions and failed tests 2020-08-27 00:23:37 -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 5c801ce877 improve reliability of tests finding the python executable. On windows, the python3 executable is still called python.exe, so if python3 doesn't exist, try python 2020-08-11 01:59:51 -07:00
arvidn 7471847cda merge RC_1_2 into RC_2_0 2020-07-23 07:44:05 +02: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 6e9f05ab9f restore info_hash() API and name the v2 API info_hashes() 2020-05-30 14:00:24 +02:00
arvidn 5cbdfa2557 merged RC_1_2 into master 2020-05-13 14:28:23 +02:00
AllSeeingEyeTolledEweSew cbb4f0277e Make tests and tools python3 compatible. 2020-05-13 00:17:37 +02:00
arvidn 6a50e67c4c increase chance of test passing 2020-04-24 00:28:25 +02:00
arvidn fdf4514d4f remove is_loopback. use member function is_loopback instead 2020-02-28 19:03:02 +01:00
arvidn 8c1939fa7d remove is_any. use is_unspecified instead 2020-02-28 19:03:02 +01:00
arvidn 84186c6c2a factor out ip address helpers from broadcast_socket and move broadcast socket into the test support library, as it's only used by tests now 2020-01-23 23:59:01 +01:00
Arvid Norberg ef25f69070 rename disk_io_thread -> mmap_disk_io and storage -> mmap_storage 2019-12-10 08:44:53 +01:00
arvidn fbcee7a667 merged RC_1_2 into master 2019-11-26 02:29:06 +01:00
arvidn 97a79d2dba fixed restoring of trackers, comment, creation date and created-by in resume data 2019-11-25 14:21:55 +01:00
arvidn 76deb4bc53 merged RC_1_2 into master 2019-11-19 08:33:23 +01:00
Arvid Norberg afb5d842ff test_resume fix 2019-11-19 01:46:39 +01:00