Commit Graph

3022 Commits

Author SHA1 Message Date
Arvid Norberg 26c4a819c8 removed the reuse-address flag on the listen socket 2010-06-17 17:14:56 +00:00
Arvid Norberg 19df3dbc2f fixed bug where local peer discovery and DHT wouldn't be announced to without trackers 2010-06-17 17:01:28 +00:00
Arvid Norberg 93bdc61410 fixed bug in bdecoder 2010-06-15 17:00:23 +00:00
Arvid Norberg 9ddf7f7cfa add back support for ip filter files to client_test. add some logging when tracker IPs are filtered 2010-06-06 02:31:20 +00:00
Arvid Norberg 242392f895 added compiler warning when unicode isn't available 2010-06-06 01:18:58 +00:00
Arvid Norberg df49e9d26b made the struct layout of entry be the same in debug builds as release builds to make that part of the ABI stable 2010-06-06 00:47:39 +00:00
Arvid Norberg 6a5806bfd2 re-fixed the open_listen_port() issue 2010-06-01 02:04:00 +00:00
Arvid Norberg cdf05a9c9c moved UDP trackers over to use a single socket 2010-05-30 01:33:03 +00:00
Arvid Norberg 2f099e6103 fix open_listen_port call order 2010-05-27 16:20:08 +00:00
Arvid Norberg 2042593750 peer receive logic fix 2010-05-23 21:39:03 +00:00
Arvid Norberg e4ef0b853e don't reannounce on failure when shutting down 2010-05-23 21:27:04 +00:00
Arvid Norberg 39a166844e fixed issue where trackers wouldn't tried immediately when the previous one failed 2010-05-17 02:06:30 +00:00
Arvid Norberg f9ec9180ff more disk cache cleanup optimizations 2010-05-16 23:14:47 +00:00
Arvid Norberg ef0abcb359 move need_save_resume_data to when a piece is completed instead of when it's written to disk 2010-05-16 23:12:37 +00:00
Arvid Norberg 2b65d104c7 log send suggest message 2010-05-16 22:30:48 +00:00
Arvid Norberg 6bb24bea80 added feature to make asserts log to a file instead of breaking the process 2010-05-16 05:26:43 +00:00
Arvid Norberg e07bad0686 optimized disk I/O cache clearing 2010-05-13 15:01:20 +00:00
Arvid Norberg 4ddf87c53e fixed typo 2010-05-13 08:23:04 +00:00
Arvid Norberg 23ba8c8a72 fixed synchronization issue between download queue and piece picker 2010-05-13 06:29:33 +00:00
Arvid Norberg 1a0d33a592 reverted mistake 2010-05-11 05:11:08 +00:00
Arvid Norberg 962c83822e updated project page 2010-05-11 04:49:45 +00:00
Arvid Norberg 126778d403 fix race condition caused by sharing udp socket and opening it in the session thread. Moved initialization to session constructor 2010-05-09 06:03:52 +00:00
Arvid Norberg d1a7e0a581 fixed typo in previous check-in 2010-05-09 06:00:11 +00:00
Arvid Norberg 330f1a2785 fix to incoming-starts-paused torrent 2010-05-09 00:55:22 +00:00
Arvid Norberg 056b53ee08 fixed bug in udp tracker scrape response parsing 2010-05-08 20:51:26 +00:00
Arvid Norberg 2e34bef04c spell correction 2010-05-06 23:56:54 +00:00
Arvid Norberg 08d145a6e9 added production assert mode 2010-05-06 02:18:08 +00:00
Arvid Norberg 85824b1924 fixed bug in the disk thread that could get triggered under heavy load 2010-05-05 05:44:45 +00:00
Arvid Norberg 24a3bbb985 optimize disk thread teardown for large read caches 2010-05-04 02:58:23 +00:00
Arvid Norberg d0f2b0ade0 make tick interval configurable 2010-05-03 08:54:03 +00:00
Arvid Norberg feaf4aa082 another attempt to fix tracker timer bug. Fixes issue where the tracker timer would be triggered repeatedly. Fixes bug where trackers loaded from resume data would get a fail limit of 3 (now they don't have a limit) 2010-05-03 08:24:30 +00:00
Arvid Norberg 9fd624ecb6 solaris build fixes 2010-05-02 22:26:43 +00:00
Arvid Norberg cc3c515458 more vs10 build fixes 2010-05-02 06:29:52 +00:00
Arvid Norberg 1f44ec75a0 fixed bug in add_piece() that would trigger asserts 2010-05-01 17:47:28 +00:00
Arvid Norberg c0635f0391 added some asserts to track down issue with peer counter in busy piece picker requests 2010-05-01 16:17:37 +00:00
Arvid Norberg dce2edb6cc fixed vs 2010 build 2010-04-30 19:08:16 +00:00
Arvid Norberg d441c7eab2 recognizes more clients in identify_client() 2010-04-28 16:14:27 +00:00
Arvid Norberg 2705859bb4 fixed bug where trackers wouldn't be retried if they failed 2010-04-27 18:22:59 +00:00
Arvid Norberg fb28835452 slight performance fix in disk elevator algorithm 2010-04-24 21:53:45 +00:00
Arvid Norberg d1addf876a added some asserts 2010-04-24 19:24:27 +00:00
Arvid Norberg d7c30bc01b fixed potential issue where a piece could be checked twice 2010-04-22 01:53:09 +00:00
Arvid Norberg fea3bf2ced fixed build issue on windows related to GetCompressedSize() 2010-04-18 02:50:22 +00:00
Arvid Norberg 56054fac58 another attempt to set peer send state when stalled on disk 2010-04-17 02:21:48 +00:00
Arvid Norberg 17b4cb027c set the peer write state properly when stalled on disk 2010-04-16 19:14:30 +00:00
Arvid Norberg d341343e35 added some clients to identify_client 2010-04-16 16:08:39 +00:00
Arvid Norberg 50c334660d fixed typo in should_check_files() 2010-04-15 14:31:49 +00:00
Arvid Norberg 43aeb2d710 fixed deadlock when starting torrents with certain invalid tracker URLs 2010-04-15 03:29:34 +00:00
Arvid Norberg 225232906a fixed disk I/O iterator bug 2010-04-14 22:02:49 +00:00
Arvid Norberg 2a55fe8c70 debug logging fixes 2010-04-14 18:52:13 +00:00
Arvid Norberg 1ee414f4b9 fixed iterator bug in disk I/O thread 2010-04-14 06:26:38 +00:00
Arvid Norberg 9a5f5562cb improve web seed connection handling 2010-04-14 06:22:00 +00:00
Arvid Norberg 2e14cfca46 fix crash 2010-04-13 05:59:59 +00:00
Arvid Norberg eeda665d06 report tracker errors in the tracker list 2010-04-13 04:37:39 +00:00
Arvid Norberg 384bfdec48 added anonymous mode to disable some particular features that might give away the user's and the client's identity 2010-04-13 04:30:34 +00:00
Arvid Norberg 8e3c5f45e3 initialize need save resume data to true to get the initial state (potentially allocated files) saved 2010-04-13 02:29:13 +00:00
Arvid Norberg b5efe1c92a added feature to ask a torrent if it needs to save its resume data or not 2010-04-12 00:36:31 +00:00
Arvid Norberg 62eef91338 added setting to ignore file modification time when loading resume files 2010-04-11 21:02:43 +00:00
Arvid Norberg ef21d26257 don't assert on clients sending bad packets 2010-04-11 17:22:21 +00:00
Arvid Norberg 6851254fdf fixed FIEMAP support on linux 2010-04-11 00:48:48 +00:00
Arvid Norberg 6975f4b350 fixed typo in asking for available amount of memory 2010-04-10 04:58:43 +00:00
Arvid Norberg 483112bb14 fix bug when accepting incoming connections to paused torrents 2010-04-09 05:54:36 +00:00
Arvid Norberg c26d1631e0 fix bug in web and http seeds shutdown 2010-04-09 05:51:31 +00:00
Arvid Norberg ef35360722 comment about posix_fallocate 2010-04-08 05:31:00 +00:00
Arvid Norberg 519d2e5819 clean up fallocate condition a bit 2010-04-08 05:09:11 +00:00
Arvid Norberg c51e0a2a86 fixed inconsistency when creating torrents with symlinks 2010-04-01 00:44:29 +00:00
Arvid Norberg a0a8c695ab fixed typo 2010-03-31 04:22:48 +00:00
Arvid Norberg 310dd7d6f3 properly detect windows version to initialize half-open connection limit 2010-03-31 02:50:09 +00:00
Arvid Norberg 4c4c7f832a fix for torrent announcing bug introduced when supporting fine grained control over sources torrents are announced to 2010-03-31 02:40:00 +00:00
Arvid Norberg 3ae927abb4 fix windows DLL build 2010-03-31 00:31:46 +00:00
Arvid Norberg 7e851818b1 support more fine-grained torrent states between which peer sources it announces too 2010-03-29 00:34:04 +00:00
Arvid Norberg 9977480f02 fixed bug in url encoder and in client test 2010-03-29 00:31:30 +00:00
Arvid Norberg b4abe6677d support for sha1 file-hashes 2010-03-27 15:51:30 +00:00
Arvid Norberg c6f57ce5d7 support optional LSD IP broadcast 2010-03-26 17:45:16 +00:00
Arvid Norberg 8724b89499 never finalize pad files 2010-03-21 18:19:59 +00:00
Arvid Norberg 126ba1fd34 fixed issue with sign extend from 24 bits to 32 bits 2010-03-21 18:15:04 +00:00
Arvid Norberg 6c42e759c3 removed incorrect assert 2010-03-21 18:09:34 +00:00
Arvid Norberg d1df643baf msvc8 build fix 2010-03-21 17:41:17 +00:00
Arvid Norberg 8fa2f26217 fixed bug in is_complete for windows 2010-03-21 17:40:15 +00:00
Arvid Norberg f28b9bb501 unbuffered mode for solaris 2010-03-21 17:26:21 +00:00
Arvid Norberg 686fc1a1c7 windows fixes 2010-03-21 02:13:56 +00:00
Arvid Norberg 786172455b added save resume action to client_test. potential small optimization in resume data save function 2010-03-20 22:00:13 +00:00
Arvid Norberg b78aca9a53 fixed logging build 2010-03-20 09:35:45 +00:00
Arvid Norberg b2484ead10 only allocate a file if it's not already allocated (windows) 2010-03-20 08:18:49 +00:00
Arvid Norberg c9f7ba495f don't include symlink info by default in torrents 2010-03-20 07:30:34 +00:00
Arvid Norberg 3e77b161c2 made the send_buffer_watermark performance warning more meaningful 2010-03-20 02:46:33 +00:00
Arvid Norberg 8ee5268123 disable including 'mtime' in new torrents by default 2010-03-20 02:41:36 +00:00
Arvid Norberg 9435e84644 precaution: clear current_tracker in torrent::status() 2010-03-20 00:52:36 +00:00
Arvid Norberg 5224e0c340 complete_ago extension 2010-03-19 18:39:51 +00:00
Arvid Norberg b874104fab precaution fix 2010-03-17 19:01:08 +00:00
Arvid Norberg 7775457441 moved GeoIP destruction inside session lock 2010-03-16 07:00:23 +00:00
Arvid Norberg 2910a4a10c dropped dependency on zlib 2010-03-16 06:14:22 +00:00
Arvid Norberg edea865023 fix unloading of GeoIP database to not cause potential crashes while shutting down 2010-03-16 02:50:20 +00:00
Arvid Norberg fc224f29e4 fixed bug in session::save_state 2010-03-13 17:37:47 +00:00
Arvid Norberg a29928de8b fix DHT bug 2010-03-12 03:18:17 +00:00
Arvid Norberg 116c3f3c45 fix linux build 2010-03-12 03:17:25 +00:00
Arvid Norberg 06a043a489 add send_watermark_factor 2010-03-12 02:36:55 +00:00
Arvid Norberg 79bd8fcd52 made the default cache size depend on the amount of physical RAM. and fixed disk thread settings update when loading through load_state 2010-03-10 07:14:10 +00:00
Arvid Norberg cbc93c8de8 made load_state and save_state more data-driven to reduce code repetition 2010-03-10 02:28:40 +00:00
Arvid Norberg 0db27ab9b6 fixed typo 2010-03-09 21:57:20 +00:00
Arvid Norberg 06cca08afd retry if accept fails because of too many files 2010-03-09 17:50:10 +00:00
Arvid Norberg a3bff512e1 added 'added' and 'completed' time to torrent_status 2010-03-09 03:21:35 +00:00
Arvid Norberg 5247db7f90 fixed rare bug where we might erase an entry from the policy peer list when we shouldn't 2010-03-08 08:03:53 +00:00
Arvid Norberg b80664bbaa save additional settings in session state 2010-03-08 03:51:07 +00:00
Arvid Norberg 6e3882a197 fixed bug in previous work-around 2010-03-08 02:55:16 +00:00
Arvid Norberg 723c59b6e8 fixed incorrect merge 2010-03-08 02:06:30 +00:00
Arvid Norberg d18b1612e4 more asserts to try to catch crash in disconnect_peers 2010-03-08 01:54:56 +00:00
Arvid Norberg d73cf769f1 weird ubuntu std::string bug work-around 2010-03-07 21:59:02 +00:00
Arvid Norberg dcffa55700 some sunPRO compiler support 2010-03-07 06:00:12 +00:00
Arvid Norberg 8b4ce8deaa window build fix 2010-03-06 22:47:25 +00:00
Arvid Norberg ad5b0497c3 same thing but for windows (except checking if the file is fully allocated) 2010-03-06 20:47:44 +00:00
Arvid Norberg 247bd9256d fixed bug in fallocate usage and avoid trying to allocate and truncate files that don't need it to not update their modification time for no good reason 2010-03-06 20:09:18 +00:00
Arvid Norberg 013cef68e8 add flags to session::save_state to filter what is saved 2010-03-06 07:49:40 +00:00
Arvid Norberg b835b03ae8 fix std::string::size_type type 2010-03-06 03:57:48 +00:00
Arvid Norberg a7e6ce7c00 fixed memalign build 2010-03-05 23:07:29 +00:00
Arvid Norberg e0e253a2a4 fixed geoip build 2010-03-04 22:34:49 +00:00
Arvid Norberg bef11e8bd5 fixed build 2010-03-04 19:24:39 +00:00
Arvid Norberg d4854024db added flags to torrent::status() that can filter which values are calculated 2010-03-04 19:15:23 +00:00
Arvid Norberg 281b6368f7 deprecate old state saving functions, merge dht state with session state 2010-03-04 16:42:39 +00:00
Arvid Norberg 9edb348093 read time is only cache misses 2010-03-04 03:49:06 +00:00
Arvid Norberg a09fb8eaa6 fixed potential iconv issue 2010-03-04 03:28:18 +00:00
Arvid Norberg a942890e8d added more detailed instrumentation of the disk I/O thread 2010-03-03 07:09:04 +00:00
Arvid Norberg fdb68ab784 attempt to not make m_buffer_queue_size to ever get negative 2010-03-03 04:32:06 +00:00
Arvid Norberg 4508758f49 memalign fix 2010-03-03 04:26:12 +00:00
Arvid Norberg 82b8756c49 fixed previous check-in 2010-03-03 04:23:53 +00:00
Arvid Norberg fb06acc828 add default peer rate limit setting 2010-03-03 01:31:31 +00:00
Arvid Norberg 2ec1c81cd3 fixed issue where an http proxy would not be used on redirects 2010-03-02 21:55:34 +00:00
Arvid Norberg beca9b3da5 build fix 2010-03-02 09:12:34 +00:00
Arvid Norberg 0952dd48f6 fixed udp tracker race condition 2010-03-02 09:04:27 +00:00
Arvid Norberg 82b60b25c8 made the DHT socket bind to the same interface as the session 2010-03-02 07:21:32 +00:00
Arvid Norberg e8523a3ad4 fixed issue with 0-sized torrents and verify_piece assert 2010-03-02 07:08:29 +00:00
Arvid Norberg 5adb8d5533 the proper fix 2010-03-02 03:55:47 +00:00
Arvid Norberg d5e891c87c fixed tracker error report bug 2010-03-02 03:33:27 +00:00
Arvid Norberg 77c0fa5872 support multiple trackers in magnet links 2010-03-01 06:46:57 +00:00
Arvid Norberg a99f18514a fixed no-ssl build 2010-02-25 19:19:12 +00:00
Arvid Norberg 053d11ea3e fixed mutex lock typo 2010-02-24 00:04:28 +00:00
Arvid Norberg f223708b0b fixed assert when using odd piece size 2010-02-23 23:47:40 +00:00
Arvid Norberg aa5fc72fbf made tracker errors use error_code 2010-02-23 21:53:45 +00:00
Arvid Norberg eff49e42a7 added support for torrents with odd piece sizes 2010-02-23 16:26:24 +00:00
Arvid Norberg 5c5f1d23a9 fixed typo 2010-02-23 06:38:05 +00:00
Arvid Norberg 210c663596 fixed error handling with torrents with invalid piece sizes 2010-02-22 01:51:25 +00:00
Arvid Norberg b96e0a448e udp socket debugging and asserts 2010-02-21 20:15:07 +00:00
Arvid Norberg cebb0b8212 fast piece optimization 2010-02-21 09:07:09 +00:00
Arvid Norberg 278c1f91c0 fix typo in previous check-in 2010-02-21 09:03:56 +00:00
Arvid Norberg 59deff7a44 fixed issue with disk read cache not being cleared when removing torrents 2010-02-21 08:52:26 +00:00
Arvid Norberg b58871bb7a no need for lazy bitfield on encrypted connections 2010-02-21 01:38:00 +00:00
Arvid Norberg 3171e81238 include new session settings in saved state 2010-02-21 01:34:23 +00:00
Arvid Norberg 54b4bc7754 better rate limiter fix 2010-02-21 01:32:57 +00:00
Arvid Norberg cead1b5780 rate limiter fix for metadata extension 2010-02-20 18:56:53 +00:00
Arvid Norberg b362795f9d web seed fix 2010-02-20 16:53:38 +00:00
Arvid Norberg 47f3a18d65 DHT bootstrapping and refresh fix 2010-02-20 16:37:50 +00:00