Commit Graph

3083 Commits

Author SHA1 Message Date
Arvid Norberg 53ef3dfb22 tuning of guided read cache 2010-02-01 00:38:32 +00:00
Arvid Norberg c4bdd4debe fixed fallocate usage on linux distros that don't have it 2010-01-31 21:52:45 +00:00
Arvid Norberg 238f7e38f5 improve disk stats logging to include cache hits 2010-01-31 21:13:52 +00:00
Arvid Norberg e154d56c1f reopen files if no_buffer mode changes 2010-01-31 20:44:05 +00:00
Arvid Norberg 3bc40b9980 fix builds for all combinations of stats and disk stats 2010-01-31 20:32:12 +00:00
Arvid Norberg ca20d2d600 fixed broken build 2010-01-31 20:22:35 +00:00
Arvid Norberg 8542343a0d also exclude volatile option when using explicit cache 2010-01-31 19:16:22 +00:00
Arvid Norberg 5b747f58f7 add guided read cache and update tuning docs 2010-01-31 19:14:00 +00:00
Arvid Norberg dbffe3aee9 increase connection limit for local peers if limits are ignored for local network in order to accept more incoming connections from the local network 2010-01-31 18:35:46 +00:00
Arvid Norberg 6a5164b990 stop people from using volatile cache and suggest_pieces at the same time 2010-01-31 16:35:38 +00:00
Arvid Norberg 53144f6f14 fixes to the new disk cache and the volatile cache feature 2010-01-31 16:29:52 +00:00
Arvid Norberg ccf8b0278a added volatile read cache option 2010-01-30 03:50:17 +00:00
Arvid Norberg 82b49b541e fixed crash when adding pieces to seeds 2010-01-27 06:06:57 +00:00
Arvid Norberg f6c0d5af35 optimized disk cache to work with large caches 2010-01-27 04:25:45 +00:00
Arvid Norberg 5cc3cbd8b1 added some settings to the save session state 2010-01-24 22:00:36 +00:00
Arvid Norberg 64d52b26ca fixed windows upnp test. added test for is_space 2010-01-24 17:31:06 +00:00
Arvid Norberg ce4c1ab01b fixed windows unit tests 2010-01-24 04:27:53 +00:00
Arvid Norberg 942c4e0a7c fixed torrent_deleted_alert to not dead-lock 2010-01-23 22:42:48 +00:00
Arvid Norberg a046850130 support disk I/O priority setting 2010-01-23 03:02:32 +00:00
Arvid Norberg 9e98bfd204 build fix 2010-01-20 03:37:34 +00:00
Arvid Norberg 848d9f5fc1 don't crash when trying to make a torrent from 0 files 2010-01-19 01:58:03 +00:00
Arvid Norberg 45cd9fe407 ignore paused and automanaged from metadata for magnet links 2010-01-18 23:44:05 +00:00
Arvid Norberg af5c7e3d04 fixed assert that could trigger by web seeds 2010-01-18 22:20:42 +00:00
Arvid Norberg 5471b098eb falloc build fix 2010-01-18 06:18:34 +00:00
Arvid Norberg 81dfade50d ranges are inclusive in script based http seeds 2010-01-18 05:16:22 +00:00
Arvid Norberg 4a5fbd8a89 fix log_time string formatting issue 2010-01-18 04:59:55 +00:00
Arvid Norberg f1be2c6b80 don't call posix_fallocate on linux if the file is fully allocated 2010-01-18 03:08:38 +00:00
Arvid Norberg 5d5ded4032 fix fallocate build with OSes that actually support it 2010-01-18 01:08:19 +00:00
Arvid Norberg 55aea5b863 improved fallocate support 2010-01-18 00:51:40 +00:00
Arvid Norberg 8c60c75547 explicit cache fixes 2010-01-17 21:57:24 +00:00
Arvid Norberg 36809c7007 improve linux fiemap support 2010-01-17 21:56:24 +00:00
Arvid Norberg b1c12d4c69 added debug assert when receiving garbage. Especially useful when running the unit tests 2010-01-17 21:49:26 +00:00
Arvid Norberg d959331c1e renamed some torrent check queue related functions to be more descriptive 2010-01-17 21:42:14 +00:00
Arvid Norberg 3c364731e8 don't ever send allowed fast messages to peers that doesn't support fast extensions 2010-01-17 21:26:47 +00:00
Arvid Norberg 018da0e29f fix to suggest pieces patch 2010-01-17 21:06:08 +00:00
Arvid Norberg da89e1b2ee indentation fix 2010-01-17 07:39:07 +00:00
Arvid Norberg c9b594fde1 support sending suggest messages based on what's in the read cache. support 'explicit read cache' 2010-01-15 16:45:42 +00:00
Arvid Norberg ef41d38c34 added support for storing per-peer rate limits across reconnects 2010-01-15 03:06:05 +00:00
Arvid Norberg 2d7705e38b disabled feature to drop requests after having been skipped too many times 2010-01-14 02:16:23 +00:00
Arvid Norberg bd93634c14 fixed range request bug for files larger than 2 GB in web seeds 2010-01-13 23:49:04 +00:00
Arvid Norberg 2948b3b375 fixed file checking bug introduced by fancy disk IO optimizations 2010-01-13 23:37:23 +00:00
Arvid Norberg a1299c3a10 optimize disk I/O elevator algorithm to spend less time picking job 2010-01-12 01:56:48 +00:00
Arvid Norberg 27247df5c9 windows build fixes 2010-01-10 05:06:13 +00:00
Arvid Norberg 4e62eec9fa fix to the previous dht routing table fix 2010-01-10 04:03:11 +00:00
Arvid Norberg 18454d6344 replace trackers from resume data instead of adding them. 2010-01-10 03:02:46 +00:00
Arvid Norberg 85951208e4 added support for explicitly flushing the disk cache 2010-01-09 21:17:52 +00:00
Arvid Norberg d498c129ab clear sparse flag on files that complete on windows 2010-01-09 18:40:05 +00:00
Arvid Norberg c1ea06f373 another dht routing table fix 2010-01-09 17:49:33 +00:00
Arvid Norberg d25d8d40fe dht routing table fix 2010-01-09 14:49:21 +00:00
Arvid Norberg cb5bad09a4 fixed DHT bug 2010-01-09 00:38:55 +00:00
Arvid Norberg 11cd7af4e7 optimized DHT routing table memory usage 2010-01-03 11:08:39 +00:00
Arvid Norberg cbf2526a8c added stats_alert reporting raw transfer stats per torrent every second 2010-01-02 14:16:35 +00:00
Arvid Norberg 2d6cc667b5 removed one floating point operation 2009-12-29 19:06:27 +00:00
Arvid Norberg 0350e86867 fixed web seed unit test 2009-12-29 17:49:24 +00:00
Arvid Norberg d157af5305 build fixes 2009-12-28 20:59:34 +00:00
Arvid Norberg baa6ea74b8 removed floating point operation 2009-12-26 11:15:12 +00:00
Arvid Norberg 7412931183 fixed some error handling in lazy_bdecode to handle out-of-memory errors 2009-12-26 10:54:00 +00:00
Arvid Norberg 31a56af1ad extended portmap log alert message cap to 600 characters 2009-12-25 22:30:18 +00:00
Arvid Norberg 59636e0cca extended upnp error message cap to 500 characters 2009-12-25 22:21:39 +00:00
Arvid Norberg cdf459dad5 only keep one outstanding duplicate request per peer 2009-12-25 16:52:57 +00:00
Arvid Norberg ecb770eca7 always unlock while waiting for disk-IO 2009-12-25 16:13:35 +00:00
Arvid Norberg ac8f64f5fe fixed deadlock in piece_manager 2009-12-25 16:02:45 +00:00
Arvid Norberg 0fc90b5655 fixed support for min-interval on tracker failures 2009-12-21 09:47:32 +00:00
Arvid Norberg 6298322b1d service disk-read requests that hit the cache immediately and circumvent the elevator ordering 2009-12-16 10:49:15 +00:00
Arvid Norberg 2055426c52 fix trunk build and tests build without exceptions 2009-12-16 10:42:34 +00:00
Arvid Norberg 96cedc9b5f more beos fixes 2009-12-15 13:11:07 +00:00
Arvid Norberg cebcbc3eeb fixed force reannounce bug with min_interval support 2009-12-13 16:36:45 +00:00
Arvid Norberg 25798ba1fa timer initialization fix 2009-12-13 16:32:07 +00:00
Arvid Norberg c9a1bd219e IPv6 build fix 2009-12-13 16:29:58 +00:00
Arvid Norberg f612a07b06 more header dependency fixes and some configure header cleanup 2009-12-09 09:55:19 +00:00
Arvid Norberg 31bbfee895 more beos 2009-12-09 05:19:48 +00:00
Arvid Norberg df2f2570c2 factor out page size function and make aligned allocator configurable to use posix_memalign and memalign 2009-12-09 01:55:30 +00:00
Arvid Norberg 6aa9d5fa52 more logging 2009-12-07 05:03:23 +00:00
Arvid Norberg 2b5a886ff8 fixed nat-pmp bug 2009-12-07 04:40:36 +00:00
Arvid Norberg 0f0fb82407 http_connection gzip fix 2009-12-06 02:38:10 +00:00
Arvid Norberg 9571fd566f removed invalid assert 2009-12-06 02:31:22 +00:00
Arvid Norberg df928764e2 reorganized error codes 2009-12-05 23:03:48 +00:00
Arvid Norberg 1e15054e0e treat redirect locations slightly more graceful 2009-12-05 22:10:44 +00:00
Arvid Norberg a5e56b6fbc add socket_type.cpp to makefile 2009-12-05 16:50:07 +00:00
Arvid Norberg d84c59d13b upload only fix 2009-12-05 16:46:10 +00:00
Arvid Norberg a6ed83e7fe add load_state/save_state to python bindings and made them build 2009-12-05 07:24:22 +00:00
Arvid Norberg ff2063651b build fixes 2009-12-03 17:44:11 +00:00
Arvid Norberg 1d04c4dcd0 added session saving and loading functions 2009-12-03 05:11:57 +00:00
Arvid Norberg cecdccaeb5 improved printing of bencoded structures 2009-12-03 05:08:24 +00:00
Arvid Norberg bd881ac154 fixed more link issues on windows. examples build with shared linking on windows 2009-12-02 17:46:25 +00:00
Arvid Norberg 1e654220fa added support for min_interval 2009-12-02 04:05:24 +00:00
Arvid Norberg 3fb05a13b1 fixed DLL link issues 2009-11-30 07:03:34 +00:00
Arvid Norberg 235b14a6d9 fixed broadcast socket regression from 0.14.7 2009-11-29 19:41:07 +00:00
Arvid Norberg 1c63a0e032 added some invariant checks to bt_peer_connection 2009-11-29 19:38:32 +00:00
Arvid Norberg ea1043a293 fix crash in force_recheck for torrents with no metadata 2009-11-29 17:57:42 +00:00
Arvid Norberg 1f5859d31f error_code fix. added is_error_code_enum template specialization and using the abbreviated syntax to build error_codes 2009-11-29 07:06:38 +00:00
Arvid Norberg 6070c59b46 fixed bug in auto-manager where active_downloads and active_seeds would sometimes be used incorrectly 2009-11-29 03:28:11 +00:00
Arvid Norberg 0f351cfd62 fixed num_queued counting 2009-11-28 22:47:45 +00:00
Arvid Norberg 39dae9e6dc some GCC 2.95 support fixes and some BeOS support 2009-11-28 22:41:21 +00:00
Arvid Norberg 1d6d11bf0c storage fix 2009-11-28 08:58:07 +00:00
Arvid Norberg d3b4e789ad natpmp fix 2009-11-28 03:15:06 +00:00
Arvid Norberg ab4b7f99ad fixed error handling in read_into_piece 2009-11-28 03:14:08 +00:00
Arvid Norberg 5d1bfc497a added torrent_info::remap_files() 2009-11-27 22:15:34 +00:00
Arvid Norberg 39d14146e7 dynamic_cast fix 2009-11-27 21:04:26 +00:00
Arvid Norberg ddceb1487d fixed building with no IPv6 support 2009-11-27 18:46:29 +00:00
Arvid Norberg 9fd7a58370 header dependency fixes 2009-11-27 07:17:10 +00:00
Arvid Norberg e750910798 fixed windows build 2009-11-27 07:08:47 +00:00
Arvid Norberg 072d3b0f48 moved some alert functions from the header to the cpp file 2009-11-26 21:40:10 +00:00
Arvid Norberg e1aa90daab header dependency fixes 2009-11-26 21:05:57 +00:00
Arvid Norberg 7db5996abc header dependency fix 2009-11-26 18:31:27 +00:00
Arvid Norberg 47d2325145 fixed typo that would sometimes prevent queued torrents to be checked 2009-11-26 15:14:39 +00:00
Arvid Norberg a80b2b0fce fixed torrent_info copy constructor. restricted copying of lazy_entry. Fixed build. added pascal_string type to be used with lazy_entry (trunk only) 2009-11-26 06:54:52 +00:00
Arvid Norberg 8dd244581d header optimizations 2009-11-26 05:45:43 +00:00
Arvid Norberg 18e5d67967 protect file_priority functions from being called on torrents without metadata 2009-11-26 00:09:49 +00:00
Arvid Norberg eb98d6ad87 support retry-after header for web seeds 2009-11-25 16:32:09 +00:00
Arvid Norberg a5586d154d more header dependency optimizations 2009-11-25 06:55:34 +00:00
Andrew Resch 83455cd88e Fix building with msvc 2009-11-25 02:18:17 +00:00
Arvid Norberg 32ee88bc05 ignore unknown metadata messages 2009-11-24 19:40:54 +00:00
Arvid Norberg 2280454a99 support upload-only extension message 2009-11-24 18:49:59 +00:00
Arvid Norberg 6381eaee54 clean up in magnet_uri.cpp 2009-11-24 18:42:58 +00:00
Arvid Norberg 0ed6f3e701 fixed logging bug in local service discovery 2009-11-24 18:42:36 +00:00
Arvid Norberg 15c4842cea another header optimization 2009-11-23 17:05:26 +00:00
Arvid Norberg 6343fe6a6d optimized header dependencies to lower build time 2009-11-23 08:38:50 +00:00
Arvid Norberg 562e2512b9 some vs2010 fixes 2009-11-22 23:55:54 +00:00
Arvid Norberg d6d577627b removed some unnecessary includes 2009-11-22 21:08:44 +00:00
Arvid Norberg 0880b74e6d fixed timestamp wrapping issue 2009-11-18 18:43:54 +00:00
Arvid Norberg 603e719117 save and restore the super-seed state of torrents 2009-11-18 17:40:38 +00:00
Arvid Norberg d9671d05b5 fixed uninitialized member in torrent 2009-11-18 08:39:15 +00:00
Arvid Norberg 1cdb377ef4 fix build issue with older versions of boost 2009-11-16 07:42:50 +00:00
Arvid Norberg 550c67a308 fixed local rate limit feature 2009-11-14 21:25:13 +00:00
Arvid Norberg c07b1d0981 fixed bug in remote download rate calculation 2009-11-14 20:55:42 +00:00
Arvid Norberg a65659f52f broadcast sockets now join every network interface 2009-11-14 20:35:24 +00:00
Arvid Norberg 51aa6c4b6b rpc_manager fix 2009-11-13 02:53:34 +00:00
Arvid Norberg e3fa84c479 local service discovery fix 2009-11-13 02:51:07 +00:00
Arvid Norberg 8fdeeb0497 don't replace invalid path characters in non-path strings 2009-11-13 02:50:07 +00:00
Arvid Norberg 158dd71ac2 performance optimization for buffer allocations 2009-11-11 05:29:34 +00:00
Arvid Norberg 84ba8445cf changed includes for tommath to point into the libtorrent directory 2009-11-10 17:14:53 +00:00
Arvid Norberg b066e4694b fixed DHT state save bug for node-id 2009-11-10 17:01:05 +00:00
Arvid Norberg 3b9b8b144c added support for using libtommath instead of libgcrypt or libcrypto for bittorrent encryption 2009-11-09 07:26:40 +00:00
Arvid Norberg e9e32235b4 added support for libgcrypt 2009-11-08 03:09:19 +00:00
Arvid Norberg e43340c961 made it possible to build without RTTI 2009-11-02 20:43:38 +00:00
Arvid Norberg e9320371b8 fixed filename function 2009-11-02 04:08:37 +00:00
cristiangreco bba63021c0 configure.ac: drop dependencies on boost.filesystem and boost.thread libraries
and add some new files to makefiles.
2009-11-02 02:10:38 +00:00
Arvid Norberg 1c28444f94 fixed residual references to boost/thread. Removed memdebug (it doesn't work and tcmalloc is better) 2009-11-02 02:00:41 +00:00
Arvid Norberg 1c377b1807 streaming fixes 2009-11-02 01:01:07 +00:00
Arvid Norberg 2897389409 fixed assert in ut_metadata plugin 2009-11-01 19:07:20 +00:00
Arvid Norberg deb363e53b removed floating point operation in rate limited udp socket 2009-11-01 03:18:00 +00:00
Arvid Norberg c7834818f8 fix assert when snubbing peers 2009-11-01 00:47:22 +00:00
Arvid Norberg b97dcc8c58 fixed race conditon when receiving metadata from swarm 2009-10-31 18:39:46 +00:00
Arvid Norberg c9392fe0fb fixed web seed for windows 2009-10-30 03:42:29 +00:00
Arvid Norberg 9d449caf84 msvc fix 2009-10-30 03:32:24 +00:00
Arvid Norberg 51ef057498 more unicode and wstring fixes 2009-10-29 18:12:43 +00:00
Arvid Norberg 86488f95e7 fixed ifdef typo 2009-10-29 04:18:58 +00:00
Arvid Norberg dcd8bb6718 move stats instrumentation to .cpp file to fix header dependency issue 2009-10-28 19:56:18 +00:00
Arvid Norberg 70df388e6c removed one iostream dependency 2009-10-28 19:55:20 +00:00
Arvid Norberg d2680e01d2 fixes to copy_file() to pass in permissions to open() 2009-10-28 19:52:58 +00:00
Arvid Norberg 4ecbc21101 fixing build issue introduced in filesystem check-in 2009-10-27 01:47:54 +00:00
Arvid Norberg e1080a81c6 fixed bug in error handling when parsing torrent files 2009-10-26 20:30:45 +00:00
Arvid Norberg c777227c84 fixed some msvc warnings 2009-10-26 02:26:15 +00:00
Arvid Norberg c418165e07 replaced boost.filesystem with custom functions (improves efficiency and drops unnecessary dependencies and improves libtorrent portability) 2009-10-26 01:29:39 +00:00
Arvid Norberg 6c137d6ef6 announces torrents immediately to the DHT when it's started 2009-10-25 02:37:45 +00:00
Arvid Norberg 65eb4db727 added session::is_dht_running 2009-10-24 21:55:16 +00:00
Arvid Norberg f2af1d0d1a fix msvc build 2009-10-23 06:41:09 +00:00
Arvid Norberg 4a5e0b7cf1 fixed typo 2009-10-22 18:47:40 +00:00
Arvid Norberg 9d1989904b some compatibility fixes. 2009-10-20 16:44:11 +00:00
Arvid Norberg 8a5b7d5d36 got rid of the last recursive mutexes. abstracted the threading primitives (and switched over to use asio's internal ones). 2009-10-20 02:49:56 +00:00
Arvid Norberg 6c71a3797f USE_I2P fix 2009-10-19 02:53:36 +00:00
Arvid Norberg a8c72b47ab USE_IPV6 fixes 2009-10-19 02:49:20 +00:00
Arvid Norberg 525c8090b7 USE_IPV6 fixes 2009-10-19 02:43:50 +00:00
Arvid Norberg aad0a68dfa removed a few more dependencies on lexical_cast 2009-10-19 00:31:47 +00:00
Arvid Norberg 99dbfdbb79 endianness define fix 2009-10-18 20:35:18 +00:00
Arvid Norberg 474566fa21 more DHT fixes and simplifications 2009-10-09 02:34:25 +00:00
Arvid Norberg fdb3b355ad fixed incorrect error when deleting files from a torrent where not all files have been created 2009-10-08 18:21:13 +00:00
Arvid Norberg cee42ff5a1 more DHT simplifications 2009-10-07 20:51:02 +00:00
Arvid Norberg 5c71c47437 fix print formatting bug in print_entry 2009-10-07 07:16:18 +00:00
Arvid Norberg cdc30f1dd1 fixed bug where pieces may have been requested before the metadata was received 2009-10-05 00:10:35 +00:00
Arvid Norberg 115a4b1863 fixed msvc build 2009-10-04 23:46:29 +00:00
Arvid Norberg 599543e889 automatically caps files and connections by default to rlimit 2009-10-03 19:02:31 +00:00
Arvid Norberg 8dc2865c5d fix DHT build 2009-10-03 18:29:47 +00:00
Arvid Norberg ac2ef7dd39 fixed division by zero in get_peer_info() 2009-10-03 15:24:59 +00:00
Arvid Norberg ea1761838a added torrent_status::finished_time 2009-09-30 17:21:59 +00:00
Arvid Norberg dfccf0b412 some DHT work 2009-09-29 17:06:08 +00:00
Arvid Norberg 138fb8c679 extended DHT unit test to include error reporting 2009-09-27 17:41:51 +00:00
Arvid Norberg 7d4338b7f7 added data triven DHT message parsing and verification 2009-09-27 05:27:43 +00:00
Arvid Norberg f36688a364 initial support for torrent tag store in DHT 2009-09-27 03:38:41 +00:00
Arvid Norberg 5b563d5522 improved forward compatibility in DHT 2009-09-27 00:40:05 +00:00
Georg Rudoy c631c00653 Fixed build: use incoming_error from correct namespace. 2009-09-25 22:03:35 +00:00
Arvid Norberg 9b15c11740 don't send stats to trackers received through tracker exchange 2009-09-25 18:17:59 +00:00
Arvid Norberg 6eefa02c56 fixed link error with incoming_error 2009-09-25 16:32:02 +00:00
Arvid Norberg fbccefb70b improved invalid filename character replacement 2009-09-25 15:08:28 +00:00
Arvid Norberg 7e430d5a2a resume data alerts are always posted, regardless of alert mask 2009-09-23 18:44:21 +00:00
Arvid Norberg 6de02f9895 fixed deadlock in natpmp implementation 2009-09-22 04:01:01 +00:00
Arvid Norberg cc5bc86a5c http_tracker_connection shutdown fix 2009-09-20 15:32:23 +00:00
Arvid Norberg e289b9c6ac build fixes 2009-09-20 15:21:31 +00:00
Arvid Norberg 54cce9da60 simplified and optimized the DHT implementation 2009-09-20 00:23:36 +00:00
Arvid Norberg d16a5d855e fixed assert in http_connection 2009-09-18 19:55:41 +00:00
cristiangreco b5b96a74fa fix missing '.cpp' suffix to some recently included source files 2009-09-18 19:23:04 +00:00
Georg Rudoy e8327c96b1 Build fixes. 2009-09-17 11:22:18 +00:00
Arvid Norberg 0f62beebb3 improved compile time by moving rate limiter implementation to a cpp file and making it a non-template 2009-09-16 04:41:35 +00:00
Arvid Norberg 6c67da08d6 split socket.hpp up in multiple headers to lower build time somewhat 2009-09-16 03:46:36 +00:00
Arvid Norberg f4427a582a fixed disk buffer leak in smart_ban extension 2009-09-14 17:07:39 +00:00
Arvid Norberg 6858a29b83 fixed potential pure virtual function call in extensions on shutdown 2009-09-14 02:08:34 +00:00
Arvid Norberg 35bca49c61 add torrent priority to adjust bandwidth allocation of torrent's peers 2009-09-13 02:24:25 +00:00
Arvid Norberg ce9cf5657d some cleanup and moved the upload_only = true to avoid failing an invariant check 2009-09-12 21:27:52 +00:00
Arvid Norberg e43dacb275 NAME_MAX fix 2009-09-10 17:12:17 +00:00
Arvid Norberg 3d9c8f1b2d cleaned up usage of MAX_PATH and related macros 2009-09-10 03:54:10 +00:00
cristiangreco 2fd925a4ae Rewrite autotools build system (new configure.ac, changes for various
Makefile.am and fixed m4 scripts). Could still need some fixes.
2009-09-10 02:22:13 +00:00
Arvid Norberg 8e068cb801 fixed interger overflow bug 2009-09-09 17:59:01 +00:00
Arvid Norberg 31d63ee5be replaces invalid filename characters with . and fixed the http_parser unit test in 0.14 2009-09-09 17:56:25 +00:00
Arvid Norberg d168a709a2 promote an assert to expensive invariant checks only 2009-09-09 16:34:50 +00:00
Arvid Norberg 72360c3c27 fixed download piece performance bug in piece picker 2009-09-08 02:38:53 +00:00
Arvid Norberg d69d615be4 fixed bug where web seeds would not disconnect if being resolved when the torrent was paused 2009-09-07 06:17:22 +00:00
Arvid Norberg 578fbccceb fix windows physical disk offset support 2009-09-07 05:31:29 +00:00
Arvid Norberg 3e9725b5d7 made peer_blocked_alert derive from torrent_alert 2009-09-07 01:47:30 +00:00
Arvid Norberg b673a1bab1 i2p fix 2009-09-06 17:03:11 +00:00
Arvid Norberg 209b135956 msvc format string fixes 2009-09-06 16:47:48 +00:00
Arvid Norberg d0cb5049f7 windows support for disk physical offset 2009-09-06 07:44:45 +00:00
Arvid Norberg afaf6df46b escape string fix 2009-09-06 07:24:15 +00:00
Arvid Norberg f15cc7bd29 another msvc build fix 2009-09-06 07:23:01 +00:00
Arvid Norberg 6d01cb475c msvc build fixes 2009-09-06 00:57:01 +00:00
Arvid Norberg 562450f545 more storage::hash_for_slot fixes 2009-09-05 16:32:54 +00:00
Arvid Norberg 79979b1ab3 file.cpp cleanup 2009-09-05 15:02:49 +00:00
Arvid Norberg 8273d67a42 fixed bug in storage::hash_for_slot 2009-09-05 14:20:00 +00:00
Arvid Norberg bec481acdf improved disk read performance and fixed bug in storage_interface's backwards compatibility functions 2009-09-05 07:21:10 +00:00
Arvid Norberg c7b1d7e7d6 escape string fixes 2009-09-05 01:08:56 +00:00
Arvid Norberg 49f54a6f7f file alignment and disk_io_thread bug fixes 2009-09-02 16:42:33 +00:00
Georg Rudoy ce16f9848c Fix build with MSVS (use const_iterator where non-const one is not needed). 2009-09-01 13:36:30 +00:00
Arvid Norberg f7ebefb285 fixed checking of fast and suggest messages when used with magnet links 2009-09-01 04:41:50 +00:00
Arvid Norberg 1f5a722b01 improved sun studio support (it seems to lack a lot of stl) 2009-08-30 07:38:52 +00:00
Arvid Norberg f764227012 build fix for when DHT is disabled 2009-08-30 06:25:17 +00:00
Arvid Norberg b3372dced6 fixed rare request queuing issue for peers in parole mode 2009-08-28 07:48:31 +00:00
Arvid Norberg 95f543b43b fixed natpmp/upnp message typo 2009-08-28 06:48:37 +00:00
Arvid Norberg a80c94363a fixed i2p socket shutdown 2009-08-26 06:21:05 +00:00
Arvid Norberg 1e45b85c34 fixed incorrect assert in torrent::we_have 2009-08-26 02:42:42 +00:00
Arvid Norberg 6078dd06b0 removed the last dependency on iostream and lexical cast 2009-08-25 18:13:46 +00:00
Arvid Norberg dac25997f9 trunk build fix when GeoIP is enabled 2009-08-21 21:28:28 +00:00
Arvid Norberg 45fd696bc6 added I2P support 2009-08-20 03:19:12 +00:00
Arvid Norberg ab1add0da9 add filename to web seed urls that don't have one 2009-08-18 22:00:52 +00:00
Arvid Norberg 0ba85d70e2 content length of http requests are assumed to be 0 2009-08-18 18:49:45 +00:00
Arvid Norberg d37fab9927 socks5 listen socket fix 2009-08-18 18:47:44 +00:00
Arvid Norberg 51c38c2e16 added performance warning when hitting the send buffer watermark limit 2009-08-17 20:29:09 +00:00
Arvid Norberg 507fc50911 replace_extension is only available in boost 1.37+ 2009-08-17 20:26:41 +00:00
Arvid Norberg a75052c193 increase send buffer watermark in high_performance_seed preset 2009-08-17 17:33:57 +00:00
Arvid Norberg 1efdd4c628 gcc build fix 2009-08-08 17:56:23 +00:00
Arvid Norberg a6bcb8f8c9 fixed issue where web seed connections might have been disconnected in the constructor (which causes problems) 2009-08-08 15:27:07 +00:00
Arvid Norberg 13967086aa added and removed some comments 2009-08-08 15:23:12 +00:00
Arvid Norberg 98ece8c1ca made sha1.cpp build in sunpro 2009-08-08 15:15:27 +00:00
Arvid Norberg 7933132cd9 fixed assert when built with disk stats 2009-08-05 19:02:51 +00:00
Arvid Norberg 5e2254df97 fix bug where a choke when the last block is outstanding would cause the outstanding_bytes counter to be incorrect 2009-08-05 18:20:33 +00:00
Arvid Norberg 4cfc97f396 added limewire to projects page and fixed some documentation typos 2009-08-05 02:31:57 +00:00
Arvid Norberg 0f376a2578 fixed typo 2009-08-02 09:32:25 +00:00
Arvid Norberg 63368c1383 added dummy storage class to disable disk I/O and an option to disable hash checking (for performance testing and simulation) 2009-08-02 06:40:45 +00:00
Arvid Norberg cc4084f943 increased cache line size for high performance seeds 2009-08-02 04:50:17 +00:00
Arvid Norberg 3cfa5c1932 log_time fix 2009-08-02 01:42:12 +00:00
Arvid Norberg 797f1e5ae5 fixed typo in previous check-in 2009-08-02 00:43:12 +00:00
Arvid Norberg a0c89d9215 include self-assigned address range in what's considered 'local' 2009-08-02 00:41:59 +00:00
Arvid Norberg 5d76c19168 disconnect redundant fix 2009-08-02 00:05:41 +00:00
Arvid Norberg 78a6df0b2a connect candidate fix 2009-08-01 22:48:43 +00:00
Arvid Norberg 838a246f6b disk stats fix 2009-08-01 22:47:07 +00:00
Arvid Norberg dfe2af0311 added asserts 2009-08-01 21:16:11 +00:00
Arvid Norberg 6a3cdd5117 increase disk buffer chunk size for high performance seeds 2009-07-28 06:29:13 +00:00
Arvid Norberg 8f1f0334c3 added some comments 2009-07-27 23:34:50 +00:00
Arvid Norberg bf545fc508 fixed overflow issue in stats and inserted asserts to avoid similar bugs in the future 2009-07-26 23:36:55 +00:00
Arvid Norberg 73a8673cfc queued disk bytes fix 2009-07-26 19:54:16 +00:00
Arvid Norberg ab26b1a5ff removed redundant code 2009-07-26 02:35:16 +00:00
Arvid Norberg eecc78b931 dll export fix + reverting upload slot change 2009-07-26 02:27:52 +00:00
Arvid Norberg 5b604e2a3a timer fixes for http_connection 2009-07-26 02:17:21 +00:00
Arvid Norberg eb66830dc3 simplified auto scrape 2009-07-24 08:25:07 +00:00
Arvid Norberg 137d2d63f5 cleaned up policy. Moved logic from policy to torrent 2009-07-23 04:38:52 +00:00
Arvid Norberg 4e5768847d build fix 2009-07-21 08:44:27 +00:00
Arvid Norberg b437e2c743 fixed get_ip_filter 2009-07-21 04:42:19 +00:00
Arvid Norberg ecdd7231b8 removed redundant code in disk_io_thread 2009-07-21 04:32:27 +00:00
Arvid Norberg 11d89dd121 fixed lsd logging 2009-07-21 04:31:10 +00:00
Arvid Norberg 848a4b2cf2 fixed bug where downloading from peers could stall when downloading at very high rates 2009-07-21 04:29:29 +00:00
Arvid Norberg 215b95699b fixed release-with-logging build configuration 2009-07-21 04:27:12 +00:00
Andrew Resch c401c65dfb Add get_ip_filter() to session 2009-07-21 01:52:37 +00:00
Arvid Norberg 0a18d91583 fox windows code for get_symlink_path() (the previous implementation caused infinite recursion on windows) 2009-07-20 02:07:32 +00:00
Arvid Norberg 7ad858ccd9 fixed rate limiter bug for local (unthrottled) connections 2009-07-19 09:17:40 +00:00
Arvid Norberg ae3be201c4 reduced the number of floating point operations to better support systems with no FPU 2009-07-19 04:59:27 +00:00
Arvid Norberg 18b911768c improve upnp port mapping description 2009-07-19 02:20:38 +00:00
Arvid Norberg c9a789d86f made the upload slot setting be a minimum for the rate based auto unchoke algorithm 2009-07-18 22:55:07 +00:00
Arvid Norberg e2b8434361 simplified should_announce_dht slightly 2009-07-18 16:50:56 +00:00
Arvid Norberg 3db42de4d9 fixed cancel_all_request() in peer_connection 2009-07-18 16:34:19 +00:00
Arvid Norberg 944b1a7d57 fixed inversed seed_time ratio logic 2009-07-18 07:16:20 +00:00
Arvid Norberg a259b2ba93 windows build fix 2009-07-16 06:35:25 +00:00
Arvid Norberg 93e204223d removed debug printouts 2009-07-04 05:06:50 +00:00
Arvid Norberg 51992dda6a added new alert when individual files complete 2009-07-04 04:58:24 +00:00
Arvid Norberg 52f39a9af0 fixed inconsistency between peer's request list and piece picker in rare cases 2009-07-02 06:43:05 +00:00
Arvid Norberg ece98a8ef6 * added support for storing symbolic links in .torrent files 2009-07-01 08:35:45 +00:00
Arvid Norberg 76db4627f6 another pending_bytes fix 2009-07-01 04:14:43 +00:00
Arvid Norberg fb6130bd95 another try to fix the upnp problems 2009-07-01 04:02:16 +00:00
Arvid Norberg db165942a7 oportunistic mingw fix 2009-06-30 23:03:54 +00:00
Arvid Norberg 79bc0070db fixed race condition in UPnP which could lead to crash 2009-06-30 03:31:58 +00:00
Arvid Norberg 690467d4ee turned test_upnp into a proper unit-test with a simple program acting as a UPnP router 2009-06-29 08:09:32 +00:00
Arvid Norberg 50fed84fe6 fixed typo 2009-06-28 22:58:21 +00:00
Arvid Norberg 315a4cdd1e some extra precaution for m_outstanding_bytes 2009-06-28 21:50:18 +00:00
Arvid Norberg ed0df519d7 fixed outstanding bytes counter assert 2009-06-28 21:09:07 +00:00
Arvid Norberg 8ee50045ca added support for uTorrent interpretation of multi-tracker torrents (off by default) 2009-06-28 20:21:55 +00:00
Arvid Norberg 6ddf63197f added more asserts around outstanding bytes counter 2009-06-28 07:39:06 +00:00
Arvid Norberg cbc740ee4f fixed bug where one allowed-fast message would be sent even when disabled 2009-06-28 00:47:49 +00:00
Arvid Norberg e9bd8f6e1f turned fast-resume errors into error_codes. fixed typo in documentation 2009-06-28 00:36:41 +00:00
Arvid Norberg 8454d51ba1 fixed rare piece picker bug 2009-06-28 00:32:14 +00:00
Arvid Norberg 44ace0b86b fixed resume data compatibility with 0.13 2009-06-27 21:47:30 +00:00
Arvid Norberg 32d1bdcf01 removed unused enums 2009-06-27 21:36:31 +00:00
Arvid Norberg 499d4dfbb4 cleaned up left-over logging 2009-06-27 19:35:20 +00:00
Arvid Norberg 10eb3fa00f handle torrents with duplicate filenames 2009-06-26 16:20:57 +00:00
Arvid Norberg 356db54dce connect candidate counter fix 2009-06-26 05:58:24 +00:00
Arvid Norberg 84426fd0a3 merkle tree torrents use 64 kiB piece sizes 2009-06-24 21:39:15 +00:00
Arvid Norberg b6b4e0d051 fix wpath build issue 2009-06-24 17:05:14 +00:00
Arvid Norberg 7eb7dfdf17 fixed rename_file 2009-06-24 09:09:35 +00:00
Arvid Norberg 3722fff027 fixed typo 2009-06-24 01:49:06 +00:00
Arvid Norberg f96a5c247f windows fixes 2009-06-23 17:52:05 +00:00
Arvid Norberg 2c5ef0debf fixed disk stats assert 2009-06-23 08:10:59 +00:00
Arvid Norberg c2e39ec907 adjust piece timeouts depending on download rate limit 2009-06-23 05:28:36 +00:00
Arvid Norberg 5de60fad78 added support for preserving modification time of files in torrents 2009-06-23 02:50:41 +00:00
Arvid Norberg 3e3c60b1ca fixed support for non-utf8 codepages 2009-06-23 02:49:57 +00:00
Arvid Norberg cb29ef04e7 clean up 2009-06-23 01:57:53 +00:00
Arvid Norberg ad1e575a6e trim tracker urls and renamed isprint to is_print 2009-06-23 01:53:47 +00:00
Arvid Norberg fffda3c738 fixed tracker error race condition 2009-06-23 01:52:44 +00:00
Georg Rudoy 8f5e69d610 Fix build on GCC 4.4. 2009-06-22 16:13:16 +00:00
Arvid Norberg 9dfa35d18d merged utf8_native and convert_to_native 2009-06-22 02:19:11 +00:00
Arvid Norberg cc3e6621ed fixed rename_file() bug where the new name would not be saved in the resume data in some cases 2009-06-22 00:52:57 +00:00
Arvid Norberg 93e1c70263 allow 0 upload slots. added test for allow fast support for sending pieces to choked peers 2009-06-20 23:23:41 +00:00
Arvid Norberg c47f9cd64c fix channel_state assert 2009-06-19 18:19:24 +00:00
Arvid Norberg 5ce7aed078 encodes urls in torrent files that needs to be encoded 2009-06-19 18:18:49 +00:00
Arvid Norberg 306b75e6b1 boost 1.35 fixes 2009-06-19 16:42:33 +00:00
Arvid Norberg d5fc3ea422 &supportcrypto=1 fix 2009-06-19 16:38:06 +00:00
Arvid Norberg f09774607f added upload mode 2009-06-18 22:32:55 +00:00
Arvid Norberg 6b048dc85e fixed bug in connect candidate counter 2009-06-18 16:16:41 +00:00
Arvid Norberg 8f47ba50f1 hash_for_slot fix 2009-06-14 22:50:35 +00:00
Arvid Norberg 3df15ad39e fixed memory leak in disk io thread when not using the cache 2009-06-14 22:48:07 +00:00
Arvid Norberg 62a7946968 disk stats fix 2009-06-14 22:20:23 +00:00
Arvid Norberg 2c34e0aa18 only write operations should trigger piece_picker::write_failed 2009-06-13 17:40:18 +00:00
Arvid Norberg 8af5211fb5 fix deadlock when upnp or natpmp fails to start 2009-06-13 10:45:07 +00:00
Arvid Norberg 7328b30517 fixed potential deadlock in natpmp and upnp 2009-06-13 08:04:53 +00:00
Arvid Norberg 2da772210c fix to make torrent_status::list_peers more accurate 2009-06-13 04:14:41 +00:00
Arvid Norberg f20f63f865 fixed deadlock in some session member functions 2009-06-13 04:09:54 +00:00
Arvid Norberg 07bcb3545a converted a whole lot of error strings into error_codes. Documented some previously undocumented alerts as well as all the error codes 2009-06-12 16:40:38 +00:00
Arvid Norberg af25f26538 correction of previous 'assert fix' 2009-06-12 16:12:19 +00:00
Arvid Norberg cf8659a0af fixed typo 2009-06-12 06:28:18 +00:00
Arvid Norberg 7b6261a63a fixed piece picker assert (would change the peer_count for pieces we have, and assert on them) 2009-06-12 06:20:08 +00:00
Arvid Norberg 3e23029670 removed incorrect assert 2009-06-11 06:35:00 +00:00
Arvid Norberg 5e87420b6f set all piece priorities to 0 when a write fails 2009-06-10 09:20:55 +00:00
Arvid Norberg 6b908e5f3f fixed compile warnings 2009-06-10 08:42:05 +00:00
Arvid Norberg f0134c1b11 improved disk error handling and expanded use of error_code in error reporting 2009-06-10 08:30:55 +00:00
Arvid Norberg 4554e06837 fixed bug when setting unlimited upload or download rates for torrents 2009-06-09 19:33:18 +00:00
Arvid Norberg d263526246 make incoming connections considered connectable when they tell us their listen port 2009-06-09 16:33:10 +00:00
Arvid Norberg cfbcacce79 fixed bug when handling malformed webseed urls and an http proxy 2009-06-09 16:00:10 +00:00
Arvid Norberg 8256a5628d fixed typo when using TORRENT_USE_OPENSSL 2009-06-09 15:43:56 +00:00
Arvid Norberg 33768fa282 fixed deadlock in http_tracker_connection 2009-06-09 05:51:10 +00:00
Arvid Norberg 18bc7c3fc7 fixed deadlock 2009-06-09 05:48:38 +00:00
Arvid Norberg 7eb78298f3 fixed windows build issue in file, as well as expanded the comment at the static assert 2009-06-09 05:46:51 +00:00
Arvid Norberg e438a3ccfc more boost-1.34.1 fixes 2009-06-03 07:46:50 +00:00
Arvid Norberg a9a12a2391 fix build with boost-1.34.1 2009-06-03 07:22:43 +00:00
Arvid Norberg a061592619 udp_socket fix 2009-05-31 23:48:24 +00:00
Arvid Norberg bd33814376 improve disk error handling 2009-05-31 22:41:53 +00:00
Arvid Norberg 0283f07aed more buffer categories to help debugging 2009-05-31 22:38:49 +00:00
Arvid Norberg b2c5d8a563 include the piece index that failed in disk errors 2009-05-31 19:44:56 +00:00
Arvid Norberg 3e7bd46706 fixed handling of unaligned block requests 2009-05-31 19:33:54 +00:00
Arvid Norberg 524151c040 don't make more calls to the disk thread when aborting 2009-05-31 19:25:26 +00:00
Arvid Norberg 6b4fcfcd38 fixed assert 2009-05-31 10:43:29 +00:00
Arvid Norberg d45e6cb118 fix bug in disk_io_thread 2009-05-31 10:15:45 +00:00
Arvid Norberg 177a7e881c fixed handling of dropped request 2009-05-31 05:50:07 +00:00
Andrew Resch d230dfaf3a Fix upnp when checking for "http://" in control_url there is an improper substr call 2009-05-31 02:41:59 +00:00
Arvid Norberg 9effe8a54a fixed deadlock in http_connection. added two error codes for that class. Added more documentation on error_code 2009-05-30 18:50:38 +00:00
Arvid Norberg 31cae31ccc fix invariant check failure 2009-05-30 04:27:26 +00:00
Arvid Norberg d25d09cb70 fixed assert in peer_connection invariant check 2009-05-30 04:03:57 +00:00
Arvid Norberg bc83387583 fix uninitialized variable in disk_io_thread 2009-05-30 04:02:03 +00:00
Arvid Norberg 745a16ec09 watchdog for stalled queued checking torrents 2009-05-30 02:38:34 +00:00
Arvid Norberg eb2203abf5 fixed torrent file path vulnerability 2009-05-28 07:25:09 +00:00
Arvid Norberg 3ea52b240f fixed memory leak in disk cache 2009-05-28 01:19:48 +00:00
Andrew Resch 6242ae051e added ability to give seeding torrents preference to active slots 2009-05-27 19:27:12 +00:00
Arvid Norberg 065bd283cf timer fixes 2009-05-27 17:06:50 +00:00
Arvid Norberg c66dda1c9f fixed bug in disk cache flush, largest contiguous function 2009-05-27 16:50:46 +00:00
Arvid Norberg e744174f9a removed dead code 2009-05-27 16:49:28 +00:00
Arvid Norberg 64c8834fbb updated tuning document for seed boxes 2009-05-27 06:37:45 +00:00
Daniel Wallin bcfe8cbf2d Fix #ifdef typo. 2009-05-26 18:20:32 +00:00
Arvid Norberg 7b8ac7276c added some more asserts around m_outstanding_bytes 2009-05-26 16:12:09 +00:00
Arvid Norberg f05777c2c2 fixed shutdown issue when trackers times out (introduced with the timer optimization) 2009-05-25 23:12:06 +00:00
Arvid Norberg c695729bbe fixed bug when force-checking a torrent with partial pieces 2009-05-25 20:31:20 +00:00
Arvid Norberg efb6ec5824 fixed expensive-invariant-checks build 2009-05-25 17:23:03 +00:00
Daniel Wallin 757b0437e9 Don't construct a temporary peer just for searching. Clean up some duplicate code. 2009-05-25 10:15:35 +00:00
Arvid Norberg 2cfb4e8205 printf formatting fixes 2009-05-25 08:55:43 +00:00
Arvid Norberg 9f7104b2d5 fixed makefiles 2009-05-25 07:47:24 +00:00
Arvid Norberg bb47b2924c fix coalesce reads and writes setting 2009-05-25 07:46:31 +00:00
Arvid Norberg aa02e36327 retry web seeds when name lookup fails instead of discarding them 2009-05-25 07:04:14 +00:00
Arvid Norberg 30c704523c caches the time every 100 ms and use the cache where high resolution timer is not needed 2009-05-25 02:45:51 +00:00
Daniel Wallin 68629eb6bc Split peer list into IPv4 and IPv6 peers. Saves 12 bytes per IPv4 peer. 2009-05-24 21:49:19 +00:00
Arvid Norberg 2f627a4b00 attempt to mitigate read cache thrashing 2009-05-24 16:49:01 +00:00
Arvid Norberg 29d56f9a8b improved read cache memory utilization 2009-05-24 15:32:14 +00:00
Arvid Norberg a89d6cced1 clean up some disk cache duplication of logic and added another memory usage optimization for the write cache 2009-05-24 00:12:53 +00:00
Arvid Norberg 6b2148cb39 removed redundant code 2009-05-23 21:42:29 +00:00
Arvid Norberg e3c07c0934 converted some recursive mutexes to regular ones 2009-05-23 21:36:09 +00:00
Arvid Norberg ae8488fb91 improved read cache memory efficiency 2009-05-23 19:27:27 +00:00
Arvid Norberg e322b318ae improved handling of out-of-memory conditions in disk I/O thread 2009-05-23 18:39:55 +00:00
Arvid Norberg e197f5cb85 disk_io_thread assert fixes 2009-05-23 17:17:47 +00:00
Arvid Norberg 5fbff8e060 fixed a bug when checking a torrent twice 2009-05-23 15:58:32 +00:00
Arvid Norberg f9c12ef589 added more disk io asserts 2009-05-23 15:50:38 +00:00
Arvid Norberg c1d9198dc3 added largest_contiguous cache flush algorithm 2009-05-23 07:35:45 +00:00
Arvid Norberg 1392b14fec fixed disk_io error handling bugs 2009-05-23 03:05:21 +00:00
Arvid Norberg e36ea4ba5d added instrumentation for disk access. Useful to benchmark disk cache performance 2009-05-23 03:03:52 +00:00
Arvid Norberg 0127edac14 added disk-checking delay, to leave room for other disk operations while checking a torrent 2009-05-22 06:32:39 +00:00
Arvid Norberg 11e97842da changed the optimistic disconnect implementation to be slightly more efficient 2009-05-22 06:27:47 +00:00
Arvid Norberg 292c7f61a1 revert and do what the previous check-in was supposed to do 2009-05-22 03:36:05 +00:00
Arvid Norberg 065c33969a promoted an expensive invariant check to only be built with full invariant checks 2009-05-22 03:26:24 +00:00