Commit Graph

3492 Commits

Author SHA1 Message Date
Arvid Norberg 810ce884fb always post cache_flushed_alert when removing a torrent 2011-04-26 16:26:53 +00:00
Arvid Norberg 2eff66c9b0 removed invalid assert 2011-04-26 16:22:21 +00:00
Arvid Norberg 5811e9eef8 small hint_read issue 2011-04-26 08:08:54 +00:00
Arvid Norberg 83fe560aa2 fixed uninitialized stats logger 2011-04-26 07:05:26 +00:00
Arvid Norberg e389f5963d added support for fadvise/F_RDADVISE for improved disk read performance 2011-04-26 07:03:05 +00:00
Arvid Norberg 29ce1a3704 improve file_too_short error message 2011-04-25 06:02:19 +00:00
Arvid Norberg d0af936933 don't turn off read-ahead by default on files. Might impact hash checking 2011-04-25 02:15:18 +00:00
Arvid Norberg 990de1c243 fix windows build issue (one more try) 2011-04-25 02:01:36 +00:00
Arvid Norberg 1deeb98898 prefer purging peer entries that are not connectable 2011-04-25 00:13:30 +00:00
Arvid Norberg 6e7de92859 we need backtraces for asio-debugging as well 2011-04-24 23:32:02 +00:00
Arvid Norberg 2add9d193a fix issue of adding duplicate incoming connections indefinitely to peer list when allow_multiple_connections_per_ip is enabled 2011-04-24 23:26:54 +00:00
Arvid Norberg 7d5df3eaa9 remove invalid assert 2011-04-24 23:08:23 +00:00
Arvid Norberg a5c0fd7210 fix potential overflow in stats averaging 2011-04-22 08:12:19 +00:00
Arvid Norberg 573a291495 first step to remove recursion in bandwidth channel 2011-04-21 03:13:53 +00:00
Arvid Norberg 86d52bbe13 include info-hash in torrent_status and post event when disk cache is fully flushed when deleting a torrent 2011-04-19 08:21:09 +00:00
Arvid Norberg a15b23f8e8 fixed bug in buffer debug code in allocator 2011-04-17 08:39:52 +00:00
Arvid Norberg 8e92cad2db fixed bug in avoid_readback disk cache eviction algorithm 2011-04-17 05:33:33 +00:00
Arvid Norberg caed433cc7 make it possible to derive from default_storage class 2011-04-16 22:58:11 +00:00
Arvid Norberg e2d3e7c300 removed invalid assert 2011-04-16 19:25:39 +00:00
Arvid Norberg 554812f0ab improve buffer debugging by logging the call stack of where it was allocated and freed from 2011-04-15 08:37:27 +00:00
Arvid Norberg a7b8ae9e27 fixed BSD file allocation issue 2011-04-13 06:54:56 +00:00
Arvid Norberg 6a9865b7c9 fix invariant check for graceful pause 2011-04-11 02:57:32 +00:00
Arvid Norberg 35d8f7bc19 fix assert when checking multiple torrents and pausing session 2011-04-10 22:05:28 +00:00
Arvid Norberg c0f2d5186f added option to replace trackers or add trackers when loading trackers from resume data 2011-04-10 21:33:29 +00:00
Arvid Norberg 0c28a3e3ca fixed bug in session::delete_files option to remove_torrent 2011-04-10 20:35:45 +00:00
Arvid Norberg 381f42bcf2 fix mingw build 2011-04-10 03:45:13 +00:00
Arvid Norberg bcd44536a8 stack SOCKS5 UDP header buffer needs to fit at least 22 bytes 2011-04-10 02:29:35 +00:00
Arvid Norberg 3435da235d make is_upload_only() be accurate and deal with super seeding special case only where necessary. Fix pointless assert in invariant check 2011-04-09 23:57:56 +00:00
Arvid Norberg 087e4a3fdc fixed msvc build 2011-04-09 21:04:02 +00:00
Arvid Norberg e5720eafd8 fix crash in udp_socket when using SOCKS5 proxy 2011-04-09 17:59:00 +00:00
Arvid Norberg 8aae74ea03 make enum_net use feature ifdefs instead of platform ifdefs 2011-04-09 03:49:46 +00:00
Arvid Norberg 61ceaba6de fix shadowed variable warning 2011-04-08 04:47:26 +00:00
Arvid Norberg 78ef442997 clear log file pointer 2011-04-06 07:58:29 +00:00
Arvid Norberg 35038bc3eb fix rotating logs when enabling and disabling stats logging at run-time 2011-04-06 07:33:10 +00:00
Arvid Norberg 22f20253f8 support turning logging on and off during run-time when built with stats logging 2011-04-06 06:27:42 +00:00
Arvid Norberg f3a7d567a4 fix bug in disk thread and torrent abort functions 2011-04-04 02:57:19 +00:00
Arvid Norberg 572f176f99 fix assert when removing a torrent 2011-04-02 20:05:44 +00:00
Arvid Norberg 56ab4db2e7 fixed bug introduced when trying to fix a warning of shadowing variables 2011-04-02 19:54:30 +00:00
Arvid Norberg 35d2354c38 bump default .torrent file size limit for magnet files to 3 MB and add more verbose logging to ut_metadata.cpp 2011-04-02 08:13:35 +00:00
Arvid Norberg d4a9a9ae77 fixed issue in session_impl::on_disk 2011-04-01 08:08:41 +00:00
Arvid Norberg 38caeb43d2 use snprintf instead of sprintf 2011-03-30 16:04:24 +00:00
Arvid Norberg 113fa0ba3d fixed some shadowed variable warnings 2011-03-30 16:03:35 +00:00
Arvid Norberg 74ccff22be use a deque instead of list for disk io jobs queue 2011-03-28 06:01:24 +00:00
Arvid Norberg 428ab186af it appears the write queue performs just as good at 10 MB as 50 MB 2011-03-27 22:22:57 +00:00
Arvid Norberg fdd23fc629 introduce a lower pass download/upload rate and report in session log 2011-03-27 20:58:43 +00:00
Arvid Norberg f6a42863e3 try to optimize disk write performance by raising the low watermark (for disk thread queue) to start reading from sockets and also post the start-reading event earlier. Also implement fair round-robin of which peers get to start downloading on this event 2011-03-27 20:35:38 +00:00
Arvid Norberg 346a6fb175 another read job starvation fix + some more logging 2011-03-27 08:21:26 +00:00
Arvid Norberg 311f7f0e57 fixed typo 2011-03-27 08:05:57 +00:00
Arvid Norberg a0ceaed11d set read_job_every to 100 instead of 1000 in high_performance_seed preset 2011-03-27 06:16:39 +00:00
Arvid Norberg afc80b7e98 fix invalid assert that would trigger when allow_multiple_connections_per_ip was true 2011-03-27 06:07:23 +00:00
Arvid Norberg 41bc60c36a fixed bug in avoid_readback disk cache algorithm 2011-03-26 19:06:58 +00:00
Arvid Norberg 3d826ae32f figured out the weirdness in the session rate stats 2011-03-25 07:49:32 +00:00
Arvid Norberg 65943e7ff7 fixed reconnect delay when leaving upload only mode 2011-03-25 05:14:14 +00:00
Arvid Norberg d493b0f1a0 just some comments 2011-03-25 04:08:43 +00:00
Arvid Norberg 9344e95285 add missing include 2011-03-25 02:59:59 +00:00
Arvid Norberg 7e07f7469f fixed bug in web_connection_base when receiving chunked encoding and made sure the unit tests pass 2011-03-24 16:46:26 +00:00
Arvid Norberg 929c31a757 fix pex unit test and shave off a few seconds for pex 2011-03-24 03:34:06 +00:00
Arvid Norberg 29a523401e bump read_job_every for high performance seeds 2011-03-24 00:50:45 +00:00
Arvid Norberg 1ab853db40 properly back off when accept() returns EMFILE 2011-03-23 08:49:26 +00:00
Arvid Norberg e9459b4df8 rss fixes 2011-03-23 02:46:22 +00:00
Arvid Norberg 283b34c439 improve torrent file ordering optimization 2011-03-22 02:27:54 +00:00
Arvid Norberg d3f0875ed5 fixed division by zero 2011-03-21 08:19:00 +00:00
Arvid Norberg aabb862400 fixed windows build 2011-03-21 06:31:48 +00:00
Arvid Norberg 54dd2a06f5 add rss support to client_test 2011-03-21 04:59:45 +00:00
Arvid Norberg 16114ab27c fixed redirect bug in http connection 2011-03-21 02:11:39 +00:00
Arvid Norberg 2dfd1a972b prevent read jobs from starving in the disk I/O thread 2011-03-20 19:17:59 +00:00
Arvid Norberg 4a40a13a6c lower disk write queue limit for high performance preset 2011-03-20 19:04:37 +00:00
Arvid Norberg 836de5d338 fixed infinite loop when using avoid_readback cache eviction algorithm 2011-03-20 17:08:18 +00:00
Arvid Norberg 3d63cb98b7 log read job queue size 2011-03-20 09:04:03 +00:00
Arvid Norberg 5c26294c29 fixed typo 2011-03-20 08:29:18 +00:00
Arvid Norberg 2525b8b457 sorting counts as job time in disk I/O thread timing 2011-03-20 07:44:25 +00:00
Arvid Norberg 54435a73b8 optimization for kick-starting sockets to download again after having been blocked by the disk 2011-03-20 07:43:57 +00:00
Arvid Norberg c1620de8d8 sorting needs to count as part of the disk job to get proper proportions of disk thread time metrics 2011-03-20 06:37:19 +00:00
Arvid Norberg e4df633157 added another disk cache flush algorithm to minimize readback when hashing pieces 2011-03-20 05:47:27 +00:00
Arvid Norberg 11e5e2539a fixed crash when setting cache_buffer_chunk_size to 0 2011-03-20 04:56:20 +00:00
Arvid Norberg 1b6227ad31 report disk read-back when verifying piece hashes 2011-03-20 01:19:14 +00:00
Arvid Norberg afc9806319 hash timing change 2011-03-19 22:52:29 +00:00
Arvid Norberg c015e28792 more disk thread timing 2011-03-19 22:23:58 +00:00
Arvid Norberg a6745558e7 log max queue size and low watermark 2011-03-18 05:49:31 +00:00
Arvid Norberg 68c3faaad1 fixed bug in disk job timer 2011-03-18 03:52:25 +00:00
Arvid Norberg 782bc974a1 log average disk job time instead of cache time 2011-03-18 03:07:10 +00:00
Arvid Norberg 3734ccae24 lower disk queue size for high-performance-seed preset 2011-03-17 14:14:29 +00:00
Arvid Norberg 0b25b87593 add a bunch more stats logged to session stats 2011-03-17 05:31:06 +00:00
Arvid Norberg 057dab11e0 fix bug in recent performance warning 2011-03-17 04:56:02 +00:00
Arvid Norberg 6db11079c8 add performance warning when disk write queue exceeds half of the write cache size 2011-03-16 07:45:51 +00:00
Arvid Norberg 7e3f69ecbf optimized disk cache flushing a bit 2011-03-16 07:21:58 +00:00
Arvid Norberg 2f7dea83ee update high_performance_seed preset 2011-03-15 07:47:03 +00:00
Arvid Norberg 5e273aff34 fix bug in read cache expiration logic 2011-03-15 02:54:41 +00:00
Arvid Norberg d6fbff13df measure disk sort time (phys_offset) 2011-03-15 02:21:28 +00:00
Arvid Norberg f9f5e3138c fix suggest piece bug 2011-03-15 01:58:48 +00:00
Arvid Norberg 7dde47b98a measure disk cache flush times 2011-03-15 01:44:32 +00:00
Arvid Norberg 9812626cf0 make DHT rate limit configurable 2011-03-14 07:47:24 +00:00
Arvid Norberg bf842f8120 fixed typo 2011-03-14 05:46:20 +00:00
Arvid Norberg a08bcf7459 change semantics of disk read time and add disk hash time 2011-03-14 05:21:46 +00:00
Arvid Norberg ff7bbc6cd0 log disk cache in session stats 2011-03-14 03:35:18 +00:00
Arvid Norberg 27c1bc632d introduced pop_alerts() which pops the entire alert queue in a single call 2011-03-14 02:59:46 +00:00
Arvid Norberg a18f047311 minor storage fix 2011-03-13 21:07:46 +00:00
Arvid Norberg 7eeafd2bac log number of torrents with errors in stats logger 2011-03-13 19:06:19 +00:00
Arvid Norberg be4f593ddf fix warning 2011-03-13 08:07:33 +00:00
Arvid Norberg 962bb30835 update high-performace-seed settings preset 2011-03-13 04:46:33 +00:00
Arvid Norberg c21100a9a5 log failed and redundant bytes 2011-03-13 04:34:57 +00:00
Arvid Norberg ca4a053d1a add written disk blocks to session stats 2011-03-12 21:41:05 +00:00
Arvid Norberg 03a7442532 add disk cache stats to session stats 2011-03-11 07:37:12 +00:00
Arvid Norberg 44fe8c160a fix no-exceptions build 2011-03-10 05:01:36 +00:00
Arvid Norberg 0d300cd09a fixed test build and some clang warnings 2011-03-09 07:51:04 +00:00
Arvid Norberg caf3ee350b shuffle around session member functions 2011-03-09 02:34:13 +00:00
Arvid Norberg 5431d86779 no need to close and re-open the listen socket when starting the DHT. Report the actual port we ended up listening on if the system chose one. don't try to listen on i2p 2011-03-07 07:02:30 +00:00
Arvid Norberg 9ecfbd17e6 prioritize trackers after adding the initial tracker 2011-03-07 03:51:52 +00:00
Arvid Norberg 5ea62910ba fixed inverse logic for ip filter exemption 2011-03-07 01:20:23 +00:00
Arvid Norberg f90f9f6609 fixed alert queue size limit bug when restoring setting from session state 2011-03-07 00:36:51 +00:00
Arvid Norberg b215c0c5e6 fix for incoming connections with torrents exempted from ip filter 2011-03-06 20:38:24 +00:00
Arvid Norberg 019b682cf9 fixed logging build 2011-03-04 07:00:27 +00:00
Arvid Norberg 9d0b99480b fix ip filter exemption for trackers. also add a global setting to always exempt trackers 2011-03-04 06:55:39 +00:00
Arvid Norberg cefc97597d improve error reporting for save resume data for torrents with no metadata 2011-03-04 06:17:55 +00:00
Arvid Norberg a0b6085530 re-evaluate auto managed torrents soon after adding a new auto-managed torrent 2011-03-04 06:03:45 +00:00
Arvid Norberg 2bdfea4248 fix count for non-ip-filtered torrents 2011-03-03 03:57:47 +00:00
Arvid Norberg 0aff6803fb fix to IP filter exemptions 2011-03-02 17:37:10 +00:00
Arvid Norberg 209bee16bf choker fix. some logic had made it into the bittyrant choker that would never be used 2011-03-02 07:26:09 +00:00
Arvid Norberg 83e8700615 minor fixes 2011-03-01 21:57:03 +00:00
Arvid Norberg 08c93978a6 clean up some dead code and fix windows build 2011-02-28 00:35:58 +00:00
Arvid Norberg c15880be91 support having torrents that the IP filter doesn't apply to 2011-02-27 17:26:57 +00:00
Arvid Norberg 8c2d496992 added new option 'always_send_user_agent' 2011-02-26 18:17:55 +00:00
Arvid Norberg 12caf7ff2e fix random.cpp build errors on non C99 compilers 2011-02-26 18:15:31 +00:00
Arvid Norberg 3b68fb2a03 add missing files 2011-02-26 17:59:34 +00:00
Arvid Norberg 19e268bbe5 fixed line endings 2011-02-26 07:56:20 +00:00
Arvid Norberg ab3b82b8ee replaced std::rand() with custom random generator 2011-02-26 07:55:51 +00:00
Arvid Norberg 7288f77ec9 support saving metadata in resume file, enable it by default for magnet links 2011-02-26 07:48:05 +00:00
Arvid Norberg 56937edf56 cleaned up some exception handling and introduced macros like BOOST_TRY/BOOST_CATCH to make the optional exception handling nicer 2011-02-25 17:00:36 +00:00
Arvid Norberg 5f5ba94462 cleared some variables in constructors and got rid of an unnecessary constructor 2011-02-25 04:28:32 +00:00
Arvid Norberg f7576714bf fixed some build warnings 2011-02-24 18:47:02 +00:00
Arvid Norberg 47822c27fe fixed typo in storage 2011-02-24 18:01:32 +00:00
Arvid Norberg ca106ca4e0 some warning fixes and cleanup 2011-02-24 04:25:35 +00:00
Arvid Norberg 8293543862 fix iterator bug in dht rss items 2011-02-24 03:22:24 +00:00
Arvid Norberg 5412c62b1f fix tracker URL decoding when adding magnet links 2011-02-23 16:47:18 +00:00
Arvid Norberg 118a75ebe7 generalized string conversion for libc 2011-02-22 03:09:13 +00:00
Arvid Norberg 97a40a45cd fully support unbuffered I/O 2011-02-22 02:53:26 +00:00
Arvid Norberg f22cf00aa4 add comments to the pad file logic 2011-02-21 06:57:03 +00:00
Arvid Norberg 56bc861455 fixed typo 2011-02-21 05:28:43 +00:00
Arvid Norberg 141ada013f fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way 2011-02-21 05:24:41 +00:00
Arvid Norberg 9fe69e7596 fix another issue with adding magnet links with a valid torrent_info object 2011-02-21 03:07:37 +00:00
Arvid Norberg 28243bff31 fix typo 2011-02-20 23:23:55 +00:00
Arvid Norberg d67e935faf fix torrent constructor to allow a half-constructed torrent_info object for magnet links 2011-02-20 23:21:29 +00:00
Arvid Norberg 261e2e2726 deadline-piece picking fix 2011-02-19 21:24:32 +00:00
Arvid Norberg 10a00fc62b fixed extended handshake error handling to be more robust and fix extension message precedence over plugins 2011-02-19 21:20:03 +00:00
Arvid Norberg 3a89bcf6ff don't assert on passing in a null pointer for listen interface, just listen on INADDR_ANY 2011-02-19 21:16:32 +00:00
Arvid Norberg bd1ef5397c clean up broadcasting 2011-02-17 06:47:26 +00:00
Arvid Norberg 513914050c fixed broadcast_lsd option. in trunk, redefined it to only broadcast every 8th packet 2011-02-16 10:16:52 +00:00
Arvid Norberg 3c05e81529 support for receiving multi announce messages for local peer discovery 2011-02-16 07:41:44 +00:00
Arvid Norberg cb6f38f056 added session::listen_no_system_port flag to prevent libtorrent from ever binding the listen socket to port 0 2011-02-16 06:35:53 +00:00
Arvid Norberg 9aa09d384c added smooth_connect and turned it on by default 2011-02-16 03:11:55 +00:00