Commit Graph

126 Commits

Author SHA1 Message Date
Arvid Norberg 2bd49c9039 Merge branch 'RC_2_0' into RC_2_1 2026-06-07 12:43:35 +02:00
Arvid Norberg 188c5226f7 stricter basic auth handling for web seed 2026-06-06 17:50:41 +02:00
Arvid Norberg d1bd7263a4 remove the bottled feature from http_connection. It's always enabled. 2026-03-07 08:14:19 +01:00
Arvid Norberg 28d1558c07 Merge branch 'RC_2_0' 2026-03-05 07:38:04 +01:00
Arvid Norberg 9ecebca6e2 fixup patch and remove unused test feature 2026-02-15 23:59:15 +01:00
tanawatra.c 8db18b5ecc enforce Host header requirement in CONNECT requests for HTTP compliance; update logging for Host header checks and add tests for CONNECT requests with/without Host header 2026-02-15 23:59:15 +01:00
arvidn 0465656c71 Merge branch 'RC_2_0' 2025-07-26 00:18:29 -07:00
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 30e7e583c3 merged RC_2_0 into master 2024-02-18 01:02:25 +01:00
arvidn cc9d07ecd6 fix and suppress some new clang warnings util addressed (in master) 2024-02-17 18:11:33 +01:00
arvidn 964ffc57ba merge RC_2_0 into master 2022-06-23 08:07:28 +02:00
arvidn 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidn ed88357b4c merged RC_2_0 into master 2022-05-23 09:17:47 +02:00
arvidn be8313e35e merge RC_1_2 into RC_2_0 2022-05-22 14:17:25 +02:00
arvidn d78dc1c201 remove unused priority field in http_connection 2022-05-11 12:26:21 +02:00
arvidn 2db8b54c08 update copyright headers in source files 2021-06-13 21:04:55 +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
Alden Torres 8ef08d23df moved netlink.hpp and ssl.hpp to aux 2021-01-16 17:25:45 +01:00
Alden Torres a8323d8270 moved socket_io.hpp to aux 2021-01-12 08:48:15 +01:00
Alden Torres 999035a200 moved random.hpp to aux 2021-01-11 23:58:31 +01:00
Arvid Norberg 109eaea545 merged RC_2_0 into master 2020-12-06 17:39:59 +01:00
arvidn f726d10891 merged RC_1_2 into RC_2_0 2020-12-03 02:55:59 +01:00
arvidn c908c1026d add option to disallow IDNA tracker and web seed hostnames, and disallow them by default 2020-12-01 02:35:26 +01:00
Arvid Norberg 4dd05827ad merged RC_2_0 into master 2020-11-15 02:06:24 +01:00
Arvid Norberg 31622459fd update copyright 2020-11-14 20:25:15 +01:00
Alden Torres a10911cdd5 replaced boost::optional with std::optional 2020-09-27 15:34:11 -07: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 005fa0cc0f merged RC_2_0 into master 2020-09-01 15:32:54 +02:00
arvidn 5935f63ead update copyrights 2020-09-01 05:14:17 -07:00
Alden Torres 77b8746b7c moved http_connection.hpp to aux 2020-07-24 00:19:19 -07:00
Alden Torres 5a9dbb446b moved hash_picker.hpp and http_parser.hpp to aux 2020-07-20 03:27:00 -07:00
Paul-Louis Ageneau 909d365f1b Replaced OpenSSL-specific code 2020-05-12 12:51:27 +02:00
Paul-Louis Ageneau 73b2fd68cf Introduced TORRENT_USE_SSL compilation flag 2020-05-08 20:57:12 +02:00
Alden Torres d91e749fc0 moving resolver related types and files to aux 2020-03-23 16:46:04 -07:00
arvidn 76fe4d370f merged RC_1_2 into master 2020-03-21 22:41:35 +01:00
arvidn 4fd6136b2a improve support for SSL connections. make passing in the SSL context into the http_connection mandatory (simplifying it, so it doesn't have to create its own). Sepaate the SSL context used for trackers and SSL torrents, so normal trackers can be validated, without interfering with the special SNI callback used for SSL torrents 2020-03-21 12:28:49 -07:00
arvidn c05a815319 merged RC_1_2 into master 2019-11-21 12:19:39 +01:00
arvidn 33d006df99 add unit tests for http_connection over plain HTTP proxy 2019-11-21 08:40:36 +01:00
arvidn d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
arvidn 87a689a0ad merged RC_1_2 into master 2019-03-30 17:22:46 +01:00
arvidn 64600f444b improve sanitizer rule in Jamfile. Some fixes for new clang sanitizr 'implicit-conversion' 2019-03-26 10:14:06 +01:00
arvidn cff805e021 more io_service -> io_context fixes 2019-02-11 20:19:08 +01:00
arvidn d140d1e20d update addresses 2019-02-11 20:19:08 +01:00
arvidn b74aa8e94d use restart() instead of reset(), on io_context 2019-02-11 20:19:08 +01:00
arvidn d0e95ea698 replace io_service with io_context 2019-02-11 20:19:08 +01:00
arvidn 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
arvidn 6be8b395da some cleanup turning memcmp() and memcpy() into span comparisons and std::copy(). some more use of random_bytes() instead of loops. 2018-11-05 18:52:45 +01:00
arvidn 1a66a8b285 merged RC_1_1 into master 2018-05-20 12:08:46 +02:00