Commit Graph

812 Commits

Author SHA1 Message Date
Arvid Norberg f037704539 clean up peer-id in bt_peer_connection (for privacy mode) and reduce dependency on session 2014-04-22 23:37:21 +00:00
Arvid Norberg 140ed20c93 fix stats bug 2014-03-25 09:17:48 +00:00
Arvid Norberg 6f0a7f3f3b fix valgrind build issue 2014-03-25 07:19:21 +00:00
Arvid Norberg 946aecdb59 fixed some warnings 2014-03-23 19:13:21 +00:00
Arvid Norberg 682ceff21b improve messaging of assert caused by precondition violation 2014-03-23 07:40:43 +00:00
Arvid Norberg 6f82d3b8ae merged i2p_alert fix from RC_0_16 2014-03-15 22:20:19 +00:00
Arvid Norberg 86c704a6ff fix dht_bootstrap_alert being posted. add additional alert for dht put completion. add utility to test immutable put/get. fix issue in DHT preventing stores on router nodes (even when they return write tokens). immutable put and get confirmed to be working 2014-02-28 04:02:48 +00:00
Arvid Norberg 1188ec2dcd expose new DHT put/get functionality in the public session API 2014-02-24 00:31:13 +00:00
Arvid Norberg a943fec777 update copyright 2014-02-23 19:12:25 +00:00
Arvid Norberg 63c6e495bd don't use shared_from_this for session_impl 2014-02-21 04:30:59 +00:00
Arvid Norberg a71fbc4f68 include reason in peer_blocked_alert 2014-02-07 17:35:56 +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 60af1aa451 update peer ranks when our external IP changes 2014-01-23 03:31:36 +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 9ab349f1d0 improve dht error reporting 2014-01-20 09:20:47 +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 90ef2cb343 non-auto-managed torrents no longer count against the torrent limits 2014-01-08 03:51:55 +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 4e6b1cfbfb update copyright 2013-12-25 17:07:16 +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 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 629baa3622 reorder some structs to reduce padding 2013-11-26 02:00:02 +00:00
Arvid Norberg aba8704313 fix logging build 2013-11-18 07:05:56 +00:00
Arvid Norberg 90e7a4c9e3 merged some rate limiter polish from libtorrent_aio 2013-11-02 03:26:53 +00:00
Arvid Norberg 4459fd89f7 merged i2p fix from RC_0_16 2013-10-28 02:41:54 +00:00
Arvid Norberg aa4064316e add info_hash to torrent_delete_failed_alert 2013-10-27 23:39:24 +00:00
Arvid Norberg cbe3a72a6e merged i2p fix from RC_0_16 2013-10-27 19:56:37 +00:00
Arvid Norberg 3b882a35de fix hang in unit test caused by disabling the DHT 2013-10-10 09:08:56 +00:00
Arvid Norberg e4c805c988 include socket type in listen_failed_alert and listen_succeeded_alert 2013-10-06 06:32:33 +00:00
Arvid Norberg 79a29d2bb0 fix valgrind build with stats logging enabled 2013-10-03 15:39:19 +00:00
Arvid Norberg 64b563fd06 attempt to trigger valgrind errors earlier 2013-10-02 21:51:30 +00:00
Arvid Norberg 4ac3d286a5 back port check to not destruct session_impl from its own thread 2013-09-29 19:37:57 +00:00
Arvid Norberg 3d6145f713 resolve duplicate torrents by URL as well (by linear scan) 2013-09-15 12:29:09 +00:00
Arvid Norberg b81dbc4669 fix stats logging 2013-09-15 05:14:03 +00:00
Arvid Norberg a386d8aca0 merged build fix without exceptions from RC_0_16 2013-09-14 10:26:55 +00:00
Arvid Norberg 1aa47fc13e add more utp statistics and make the congestion controller less aggressive when the up-link is not saturated 2013-09-14 10:06:48 +00:00
Arvid Norberg 515cd24a8c if setting socket send or receive buffer size fails, reset it to the previous value 2013-09-03 08:39:30 +00:00
Arvid Norberg 275c340231 make socket buffer sizes affect the udp socket as well. for high_performance_seed preset, set 1 MB socket buffers. only run test_rate() in proper release mode (without invariant checks and debug-iterators). lower the time limit of test_rate. update regression tests to disable invariant checks and debug iterators when building release mode 2013-09-02 09:24:34 +00:00
Arvid Norberg 3afe6c23a0 merged tracker key patch from RC_0_16 2013-08-31 21:06:43 +00:00
Arvid Norberg b6083fbc28 first steps towards supporting SSL over uTP. moved the TODO comment and made it describe the next step. Optimized session destruction in unit tests, hopefully shaving off a bit of test run-time (and now supports asio-debugging of unit tests) 2013-08-31 20:19:03 +00:00
Arvid Norberg 8a0b4d02da merged fix from RC_0_16 2013-08-26 05:50:26 +00:00
Arvid Norberg 0f57615ea3 attempt at fixing shut-down hang 2013-08-21 15:55:24 +00:00
Arvid Norberg d5c715bf96 added missing asio-debugging mark-up 2013-08-21 15:41:19 +00:00
Arvid Norberg 023116db6f merge ssl test fix from RC_0_16 2013-08-17 22:29:34 +00:00
Arvid Norberg 1b60710493 support extensions removing torrents in tick() 2013-08-15 06:10:41 +00:00
Arvid Norberg d782fc224c merged SSL fix from RC_0_16 2013-08-05 16:20:25 +00:00