arvidn
|
224cc0ec6d
|
include tiny version in DHT v field
|
2020-02-18 20:35:04 +01:00 |
arvidn
|
bc0274ed6a
|
limit the number of DHT nodes to run
|
2020-01-21 12:04:22 +01:00 |
arvidn
|
82d4d1927d
|
restrict DHT nodes to the network they are associated with (multi-homed)
|
2020-01-17 00:01:10 +01:00 |
arvidn
|
4b8f8d7e92
|
honor proper object lifetime rules
|
2019-09-28 22:11:54 +02:00 |
arvidn
|
7878f68370
|
add some missing documentation. undeprecate error_file_metadata ahead of master undeprecating it
|
2019-09-08 10:51:46 +02:00 |
arvidn
|
c0c4c2083a
|
avoid comparing unrelated pointer in the DHT routing table (which is UB)
|
2019-08-31 12:54:00 +02:00 |
Arvid Norberg
|
ff113a262c
|
make it a bit more likely to split the last bucket in the DHT routing table
|
2019-08-12 15:08:49 -07:00 |
Andrei Kurushin
|
d4ddc416b3
|
backport RC_1_2: unban 51.x.x.x from dht darknet list
|
2019-08-02 08:01:34 -07:00 |
arvidn
|
b1b03a0d77
|
factor out and unit test parts of the DHT routing table logic that handles the affinity of nodes to insert. Specifically, make sure the even distribution within routing table buckets works correctly
|
2019-07-30 07:56:18 -07:00 |
arvidn
|
3995ffeafd
|
similar to how low RTT DHT nodes are preferred over high RTT nodes, also have an affinity for nodes with node IDs derived from their IP
|
2019-07-28 16:13:16 -07:00 |
arvidn
|
ca27892111
|
avoid empty dht routing table buckets
|
2019-07-27 07:18:24 -07:00 |
arvidn
|
929f727a6a
|
fix dht_stats_alert routing table stats for multi-homed clients (temporary hack for 1.2.x series)
|
2019-07-27 07:18:24 -07:00 |
Amir Abrams
|
8420f01eb4
|
Correct log verbiage for put_item
|
2019-07-14 11:42:07 -04:00 |
arvidn
|
f9d31cf71b
|
fix GCC-9 warnings
|
2019-06-02 20:58:58 +02:00 |
arvidn
|
7d1afa9b41
|
fix assert in DHT node
|
2019-04-30 12:50:05 +02:00 |
Arvid Norberg
|
76c2794923
|
fix build with boost-1.70 (#3788)
fix build with boost 1.70.0 Fix #3683
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
2019-04-19 20:56:19 +02:00 |
arvidn
|
102387f4a8
|
make all tests run cleanly with leak sanitizer
|
2019-03-27 17:10:36 +01:00 |
arvidn
|
1b2832e018
|
convert some for-loops into std algorithms
|
2018-11-27 19:43:01 +01:00 |
arvidn
|
3f87801142
|
fix some cppcheck warnings
|
2018-11-27 13:53:38 +01:00 |
arvidn
|
9ae4aedeb0
|
deprecate slow bdecode() function
|
2018-11-19 09:09:55 +01:00 |
arvidn
|
8841c58435
|
improve interoperability between bdecode_node and entry (for encoding). Make it possible to construct an entry from a bdecode_node. move comparison operators out of entry to support implicit conversions from bdecode_node
|
2018-11-18 22:54:36 +01:00 |
arvidn
|
5383854768
|
make span's and sha1_hash's index and size types signed (instead of unsigned). Specifically std::ptrdiff_t. In line with the direction of gsl span and reduce signed->unsigned casts
|
2018-11-16 14:06:22 +01:00 |
arvidn
|
164982c63a
|
pass the dht item object by const reference instead of by value
|
2018-11-15 00:18:53 +01:00 |
arvidn
|
4d88c83576
|
add rvalue reference overloads for add_torrent_params, settings_pack and session_params. Those structures are pretty large so being able to take them by rvalue reference may be beneficial
|
2018-11-13 08:05:56 +01:00 |
arvidn
|
9d26f4f96c
|
fix asio-debugging build of dht test
|
2018-11-09 16:39:39 +01:00 |
arvidn
|
6be8b395da
|
some cleanup turning memcmp() and memcpy() into span comparisons and std::copy(). some more use of random_bytes() instead of loops.
|
2018-11-05 18:52:45 +01:00 |
Amir Abrams
|
88266edd43
|
Update comment in put_mutable_item
Trivial update to a comment in put_mutable_item.
|
2018-10-24 13:13:20 +02:00 |
Arvid Norberg
|
81356cfce1
|
add make_tcp() and make_udp() to convert endpoint types
|
2018-09-19 10:57:28 -07:00 |
arvidn
|
c9cbb122e2
|
fix some warnings from sonar-cube
|
2018-09-05 18:10:57 -07:00 |
Arvid Norberg
|
b90564d418
|
remove the IPv6 enable/disable build config
|
2018-08-19 22:20:54 +02:00 |
arvidn
|
e92cf18340
|
fix some warnings around unused variables, dead stores, potentially dereferencing nullptr and calling virtual functions from constructor
|
2018-07-20 01:03:16 +02:00 |
arvidn
|
4633258fbe
|
make the DHT announce flags a strong type
|
2018-07-16 12:04:16 +02:00 |
Steven Siloti
|
961cf62cad
|
dht: announce with per-interface listen port
|
2018-07-12 08:36:57 +02:00 |
arvidn
|
10deff2f91
|
fix some unintentional copies (with explicit moves)
|
2018-07-01 18:22:32 +02:00 |
Alden Torres
|
7621be6df1
|
fixed signed/unsigned warnings with latest version of Xcode clang (#3032)
|
2018-05-16 16:06:33 +02:00 |
arvidn
|
fe612ca167
|
replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options
|
2018-05-13 19:25:17 +02:00 |
Steven Siloti
|
96d215a32a
|
only allow pinged nodes into the routing table (#3006)
This is an attempt to prevent bogus nodes entering the routing table and
being propogated to other nodes.
|
2018-05-08 12:47:29 +02:00 |
arvidn
|
52e1a7b6c9
|
merged RC_1_1 into master
|
2018-04-15 11:00:57 +02:00 |
arvidn
|
9cd0ae67e7
|
another boost-1.67 build fix
|
2018-04-13 14:43:41 +02:00 |
arvidn
|
f0227451a6
|
merged RC_1_1 into master
|
2018-04-13 01:47:41 +02:00 |
Steven Siloti
|
236e0e7699
|
pass default constructed boost::function instead of NULL
Clang 6 defines NULL as nullptr which breaks implicit construction
of boost::function from NULL.
|
2018-04-12 14:32:31 +02:00 |
Alden Torres
|
9b1e79660f
|
removed unnecessary parentheses around min/max, added some const modifier (#2926)
|
2018-04-11 15:19:00 +02:00 |
arvidn
|
aaf9304a3b
|
update year in copyright header
|
2018-04-09 09:04:33 +02:00 |
Arvid Norberg
|
16f1deb3ec
|
merged RC_1_1 into master
|
2018-04-04 15:28:33 +02:00 |
Alden Torres
|
5b922072e9
|
avoid calls to .address() when looking for endpoint protocol (#2892)
using is_v4 and is_v6 where possible
|
2018-04-01 13:48:17 +02:00 |
arvidn
|
6a2df1034a
|
add some asserts and checks preventing IPv6 addresses to make it into libtorrent when IPv6 support is disabled
|
2018-03-31 14:17:06 +02:00 |
Alden Torres
|
135e47c929
|
minimal optimization by using node_id::is_all_zero
|
2018-03-05 09:01:25 +01:00 |
Alden Torres
|
80f5edc500
|
added some static and const in node.cpp and minor cleanup in rpc_manager.cpp
|
2018-03-02 11:29:59 +01:00 |
Alden Torres
|
5d230a69f2
|
minor code cleanup
|
2018-01-30 12:38:08 +01:00 |
arvidn
|
65fef972a2
|
apply some c++11 modernization
|
2018-01-11 04:51:39 -05:00 |