Commit Graph

4540 Commits

Author SHA1 Message Date
Arvid Norberg 77136592c2 merged minor fix from RC_0_16 2014-02-19 17:26:58 +00:00
Arvid Norberg 18bf330615 merged enum_net typo fix from RC_0_16 2014-02-17 07:25:21 +00:00
Arvid Norberg 715b60c8ff attempted windows build fix 2014-02-17 07:24:43 +00:00
Arvid Norberg 2d5f0dddf7 merged mingw fix from RC_0_16 2014-02-15 02:45:04 +00:00
Arvid Norberg cc08512ee3 merged SetFileValidData fix from RC_0_16 2014-02-08 09:18:09 +00:00
Arvid Norberg a71fbc4f68 include reason in peer_blocked_alert 2014-02-07 17:35:56 +00:00
Arvid Norberg b3de578fe7 merge invalid assert fix from RC_0_16 2014-02-07 09:35:08 +00:00
Arvid Norberg 0398dfe498 merged storage allocation mode fix from RC_0_16 2014-02-07 08:58:52 +00:00
Arvid Norberg 6c22d426d4 make all unit tests pass msvc's /RTCc instrumentation (no implicit integer truncation in casts) 2014-02-05 09:38:32 +00:00
Arvid Norberg 6597eaf09a there doesn't seem to be any point in exporting piece_block_progress, so don't do that. Introduce magic number check in disk_io_thread (mysterious crash/corruption happens in storage unit test on mac, but not very often and hard to reproduce). 2014-02-03 01:55:26 +00:00
Arvid Norberg 5dea631708 minor fixes from massaroddel 2014-02-02 10:05:32 +00:00
Arvid Norberg cd4adae4ed add and fix some documentation. regenerate html. remove bittorrent_utp as a connection type, there's already a utp_socket flag 2014-02-02 09:33:19 +00:00
Arvid Norberg 9612ef193e cleaned up i2p_category to encapsulate it in i2p_stream.cpp, as well as the socks5 erro_category. added some documentation to torrent_handle and session. fixed reference documentation mapping of get_*_category() functions. regenerate documentation 2014-02-02 04:07:36 +00:00
Arvid Norberg 15e2019332 clean up upnp error category by moving it into upnp.cpp, it's not properly encapsulated. added some documentation to torrent_handle. reformatted some documentation comments to honor an 80 column display 2014-02-02 03:05:55 +00:00
Arvid Norberg c02159f143 support magnet links wrapped in .torrent files 2014-02-01 03:47:29 +00:00
Arvid Norberg 3a03debcee fix bug in dht_error_alert 2014-01-31 06:01:29 +00:00
Arvid Norberg 57489489ab fixed verbose logging format string issue 2014-01-26 09:17:59 +00:00
Arvid Norberg 077f728931 more test_transfer polish. fix issue where passing on our listen port depended on anonymous_mode, instead of use_proxy. not passing it on would break a few unit tests 2014-01-26 08:36:56 +00:00
Arvid Norberg 36c9add067 don't print stuff to stdout in debug builds. when waking up from completing a connection attempt, exit immediately if the connection is disconnecting, or disconnect if we're in graceful pause mode. some test cleanups 2014-01-26 08:18:13 +00:00
Arvid Norberg f0d1e8636c extend verbose logging to try to catch test_priority failure on windows 2014-01-26 04:45:49 +00:00
Arvid Norberg 05aa06460d fix merge error 2014-01-26 02:40:09 +00:00
Arvid Norberg ce2805a258 merged lt_tex fix from RC_0_16 2014-01-26 01:17:58 +00:00
Arvid Norberg 1f5373599d fix typo 2014-01-25 08:16:51 +00:00
Arvid Norberg 2ac9c30dc9 fix valgrind check 2014-01-25 01:53:33 +00:00
Arvid Norberg 2a3f4e2360 merged verbose logging change from RC_0_16 2014-01-24 07:07:04 +00:00
Arvid Norberg 49ad7454d3 fix crc32 typo 2014-01-23 08:10:09 +00:00
Arvid Norberg 60af1aa451 update peer ranks when our external IP changes 2014-01-23 03:31:36 +00:00
Arvid Norberg 6bda2f7430 change peer priority to use crc32c instead of sha1 2014-01-23 02:28:04 +00:00
Arvid Norberg 99d9916c29 some more piece_picker asserts 2014-01-22 09:53:47 +00:00
Arvid Norberg 9d03019050 fix division by zero in send buffer debug logging 2014-01-22 01:59:24 +00:00
Arvid Norberg e0644ce8f5 invariant check macro fixes 2014-01-21 19:26:09 +00:00
Arvid Norberg 5d3c479e12 merged chunked encoding fix from RC_0_16 2014-01-21 09:14:00 +00:00
Arvid Norberg ca132efeb1 fix issue in torrent::bytes_left 2014-01-21 01:52:01 +00:00
Arvid Norberg 9ab349f1d0 improve dht error reporting 2014-01-20 09:20:47 +00:00
Arvid Norberg fec7407461 send implied_port in dht announce messages when uTP is enabled 2014-01-20 06:35:06 +00:00
Arvid Norberg 4ac670de5c remove outdated todo comment 2014-01-20 05:41:24 +00:00
Arvid Norberg e616b5b38e back-port allocator patch from libtorrent_aio to make the buffer debugging code generic and platform-independent 2014-01-20 03:55:24 +00:00
Arvid Norberg dca3f3c1a8 improve SSL error reporting and fix torrent_info::ssl_cert() bug 2014-01-20 01:01:03 +00:00
Arvid Norberg 8ab1d8b686 more build fixes and cleaning up 2014-01-19 20:19:15 +00:00
Arvid Norberg 702b68ecc4 clean up assert related defines and debuf-only fields less error-prone. fix missing initialization in file_pool caused by mistake in defines under which the debug field was initialized 2014-01-19 19:45:50 +00:00
Arvid Norberg a5b5cf0f62 ignore unused parts of the internet on the DHT by default 2014-01-19 07:44:16 +00:00
Arvid Norberg bec02dd953 fix valgrind build 2014-01-19 04:13:46 +00:00
Arvid Norberg 11038aeecb attempt to speed up client_test's loading of torrents 2014-01-19 04:11:49 +00:00
Arvid Norberg 13b1628f7a fix memory leak in uTP 2014-01-18 08:15:13 +00:00
Arvid Norberg b283d58899 fix some uninitialized members 2014-01-18 06:53:47 +00:00
Arvid Norberg 20184a9a22 another rate limiter optimization attempt 2014-01-17 07:48:38 +00:00
Arvid Norberg 4a7543bdb8 remove a DHT observer right away when the response has an invalid node ID 2014-01-17 05:16:37 +00:00
Arvid Norberg b621f3f00a merged DHT fix from RC_0_16 2014-01-17 04:49:04 +00:00
Arvid Norberg 36889a1524 asserts and logging in SSL test 2014-01-17 01:00:49 +00:00
Arvid Norberg d7be4659c8 rate limiter overflow fix (for very high limits) 2014-01-13 06:49:47 +00:00
Arvid Norberg 86b68e65e4 merged dht node ID change from RC_0_16 2014-01-11 08:08:43 +00:00
Arvid Norberg b63cdcb991 fix build without asserts 2014-01-08 05:45:13 +00:00
Arvid Norberg 90ef2cb343 non-auto-managed torrents no longer count against the torrent limits 2014-01-08 03:51:55 +00:00
Arvid Norberg 89d5582560 merged dht fix from RC_0_16 2014-01-07 08:52:53 +00:00
Arvid Norberg 89cbe57b93 fix mutex issue introduced in recent patch 2014-01-06 08:03:05 +00:00
Arvid Norberg f1e8d09126 fix mutex issue introduced in recent patch 2014-01-06 07:59:47 +00:00
Arvid Norberg ae7bb20170 update node ID generation algorithm from RC_0_16 2014-01-06 05:46:46 +00:00
Arvid Norberg 16594d27ef fix build with allocator debugging 2014-01-06 05:45:36 +00:00
Arvid Norberg 6dbc7091d3 fix link issue in build. caused corruption and crash in test_storage 2014-01-06 03:50:25 +00:00
Arvid Norberg db6a22d5c1 handle DHT error responses correctly 2014-01-03 08:02:53 +00:00
Arvid Norberg 54bbd3cae0 support salt feature in DHT put 2014-01-03 04:18:46 +00:00
Arvid Norberg f26df6cbfa allow force_announce to only affect a single tracker 2014-01-02 02:16:31 +00:00
Arvid Norberg 31e6d54ad2 torrent_handle::torrent_file returns a const torrent_info pointer 2014-01-01 21:24:15 +00:00
Arvid Norberg dc2243c17e add moving_storage field to torrent_status 2014-01-01 02:04:26 +00:00
Arvid Norberg 53a62344ca fix port mapping functions in session 2013-12-31 22:24:56 +00:00
Arvid Norberg 3858025c3c expose UPnP and NAT-PMP mapping in session object 2013-12-31 20:42:37 +00:00
Arvid Norberg 260e97c4e0 document salt feature in put and get DHT extensions. include a test vector and add that to the unit test. (salt is not implemented) 2013-12-31 08:37:42 +00:00
Arvid Norberg 5b46be916b merged storage fix from RC_0_16 2013-12-30 02:50:29 +00:00
Arvid Norberg 93e7c42c7b merged typo fix from RC_0_16 2013-12-29 20:26:17 +00:00
Arvid Norberg de6a715092 merged uTP fixes from RC_0_16 2013-12-29 19:35:39 +00:00
Arvid Norberg d6b1aa4c36 DHT refactoring and support for storing arbitrary data with put 2013-12-27 04:28:25 +00:00
Arvid Norberg c9bfa1279e fix lazy_bdecode build 2013-12-26 18:43:48 +00:00
Arvid Norberg 4e6b1cfbfb update copyright 2013-12-25 17:07:16 +00:00
Arvid Norberg 444223c2e3 merged fixes from RC_0_16 2013-12-23 01:40:05 +00:00
Arvid Norberg 11a584991b fix bug in dht logging build 2013-12-21 09:22:10 +00:00
Arvid Norberg 70735a0a67 minor ifdef tweaks and DHT logging 2013-12-21 07:18:49 +00:00
Arvid Norberg 603eea7e60 fix one more ifdef issue 2013-12-21 05:59:26 +00:00
Arvid Norberg be8c918158 fix TORRENT_DISABLE_EXTENSIONS issues (specifically when enabling it) 2013-12-20 08:35:29 +00:00
Arvid Norberg 4170b3adac fix verbose logging build 2013-12-20 06:43:57 +00:00
Arvid Norberg 5d822706e1 add invariant check to dht routing_table 2013-12-20 04:54:52 +00:00
Arvid Norberg ce99fd47f2 enable all DHT logging (when building with dht logging enabled) 2013-12-20 04:54:27 +00:00
Arvid Norberg 412842365a add backwards compatible reading of IP field in DHT messages 2013-12-20 04:47:41 +00:00
Arvid Norberg a85cdb2d1a abbreviate long strings when printing lazy_entries on a single line 2013-12-20 04:40:00 +00:00
Arvid Norberg df3204874d clean up entry::print 2013-12-19 08:30:17 +00:00
Arvid Norberg 4b81b3f90b move some defines from headers to cpp files (to improve ABI stability). add some documentation. regenerate html. minor fixes to documentation script 2013-12-19 05:35:47 +00:00
Arvid Norberg d0d92a207e disable invariant check when TORRENT_DISABLE_INVARIANT_CHECKS is defined 2013-12-18 07:15:16 +00:00
Arvid Norberg adb3a5523c some defensive programming. cleanup unused boost include. tighten up boost includes 2013-12-17 23:26:44 +00:00
Arvid Norberg 60a33f8cf8 make test_ssl build without openssl (and also not do anything) 2013-12-16 06:17:05 +00:00
Arvid Norberg 93d7d89ced fix issue with obfuscated_get_peers where peers in responses to obfuscated requests would still be returned. slight refactoring to move traversal algorithm level logic to traversal_observer class 2013-12-14 23:25:38 +00:00
Arvid Norberg 396e5bbb37 fixed missing case in save_struct 2013-12-09 08:00:21 +00:00
Arvid Norberg 4f189e921d mark some expensive parts of invariant checks as expensive and disabled by default. introduce undead_peers to destruct all peer_connections in the network thread. they hang around while waiting for all outstanding disk jobs to complete. make the asio-debugging output a bit prettier 2013-12-05 07:42:32 +00:00
Arvid Norberg 88e4e0a97b strip trailing dots and spaces in filenames 2013-12-05 07:40:57 +00:00
Arvid Norberg 9c761f6777 fix bug in load/save settings (introduced by altering pe_settings layout) 2013-12-03 09:10:16 +00:00
Arvid Norberg a05103154b remove debug logging to print field offsets and struct sizes 2013-12-02 10:00:03 +00:00
Arvid Norberg 356332a93b make comparison function strict weak ordering 2013-12-02 09:39:17 +00:00
Arvid Norberg e0f3c7f6d0 comments 2013-12-02 09:30:19 +00:00
Arvid Norberg faa53d7657 member re-order and struct packing 2013-12-02 04:24:10 +00:00
Arvid Norberg d9dca62f1e fix verbose logging build 2013-11-29 22:53:17 +00:00
Arvid Norberg f382876832 fix debug buffer build. add new Jamfile feature for it. attempt to make it build on windows 2013-11-29 09:41:53 +00:00
Arvid Norberg c08d3ef5db fix build 2013-11-29 05:37:52 +00:00