Jack Robison
63bf084a6a
cancel dht response future
2019-04-24 09:48:04 -04:00
Jack Robison
664f91bfab
add lbrynet.dht.protocol.distance unit tests
2019-03-15 12:44:41 -04:00
Jack Robison
6565ca8558
improve lbrynet.dht.serialization unit tests
2019-03-14 18:45:56 -04:00
Jack Robison
d95903d219
update aiohttp and pylint
2019-02-28 12:04:07 -05:00
Victor Shyba
2d8ebe25ed
refactor so we can stop trapping CancelledError everywhere
2019-02-26 17:42:45 -05:00
Victor Shyba
e8c9abb944
add LRU to KademliaPeer creation
2019-02-26 09:42:32 -05:00
Jack Robison
fc64d8d1a8
fix slow ping queue shutdown
2019-02-21 17:44:02 -05:00
Jack Robison
3868dea819
don't join buckets if there is only one
2019-02-21 14:18:48 -05:00
Jack Robison
03cd6b7200
fix cases where buckets could be unjoined after removing a peer
2019-02-21 13:53:35 -05:00
Jack Robison
4294bf742d
simplify/fix ping queue
2019-02-21 13:00:23 -05:00
Jack Robison
e260de59f1
fix updating/setting contact triple
2019-02-21 10:50:11 -05:00
Jack Robison
154702e6dd
fix KBucket.add_peer
2019-02-21 10:50:11 -05:00
Jack Robison
ee12985135
dont ping outselves
2019-02-20 14:15:31 -05:00
Jack Robison
cb5d428d12
add split_buckets_under_index config setting for seed nodes
2019-02-20 11:25:50 -05:00
Jack Robison
fcbdaa336f
fix KBucket.key_in_range
...
The range_min and range_max of a KBucket where mistakenly bounding the node id of a peer to be added rather than the distance from the local node id to the peer node id
2019-02-19 13:57:11 -05:00
Jack Robison
32b4405a4c
logging
...
fix https://github.com/lbryio/lbry/issues/1881
2019-02-15 17:26:28 -05:00
Victor Shyba
918122e7cf
supress invalid token error to debug
2019-02-15 16:31:47 -03:00
Victor Shyba
43ac928f0b
remove dht locks
2019-02-07 20:11:57 -03:00
Jack Robison
f22b5da170
fix raised error for a peer address mismatch
2019-02-06 12:11:22 -05:00
Jack Robison
7fe211d134
fix resolve_host
2019-02-05 13:31:57 -05:00
Jack Robison
f0b49fc153
always return close peers from findValue
2019-02-04 15:07:42 -05:00
Jack Robison
ae1162f5b0
don't try downloading from oneself
...
-don't return the querying peer in results for findValue
2019-02-04 14:50:53 -05:00
Jack Robison
3f98b16800
fix blob announce time, use time.time instead of loop.time
2019-02-03 15:47:15 -05:00
Jack Robison
efe4afd09e
fix blob announce time
2019-02-01 21:28:59 -05:00
Jack Robison
c7cb6822cc
logging
2019-02-01 21:28:59 -05:00
Jack Robison
31445c7797
remove lock from PeerManager
2019-01-31 20:57:48 -05:00
Jack Robison
2b035009ef
handle both urls and ip addresses for fixed nodes and reflector servers
2019-01-31 15:39:20 -05:00
Jack Robison
2335243de9
pylint
2019-01-31 15:39:20 -05:00
Jack Robison
fcda9500fe
add accumulate_peers to Node
...
simplifies collecting peers during a download by giving a queue of hashes to search for and a queue or peers as they are found
2019-01-31 15:39:20 -05:00
Victor Shyba
5ee4b2173a
fix probes bugs, partial DHT refactor
2019-01-31 01:49:52 -03:00
Victor Shyba
3e1c3d1e4b
use node_id parameter instead of your own
2019-01-31 01:11:09 -03:00
Jack Robison
8f7cf0b38f
verbose logging
2019-01-29 13:08:11 -05:00
Jack Robison
bfaebf0085
fix timeout error
2019-01-28 17:20:14 -05:00
Jack Robison
330862e487
fix https://github.com/lbryio/lbry/issues/1297
2019-01-28 16:00:37 -05:00
Jack Robison
778d3826ab
clean up settings and use them
2019-01-28 15:51:27 -05:00
Jack Robison
573285a5bb
fix error encoding find value response
2019-01-26 17:04:11 -05:00
Jack Robison
30689bbf8d
update/add config
...
remove the following settings:
peer_search_timeout
sd_download_timeout
run_reflector_server
download_mirrors
pointtrader_server
add the following settings:
blob_download_timeout
peer_connect_timeout
node_rpc_timeout
2019-01-24 00:13:15 -05:00
Jack Robison
2fa5233796
async lbrynet.dht
2019-01-24 00:13:15 -05:00
Victor Shyba
9f0b1f3e25
fix pylint failures unveiled after astroid pin
2018-11-26 11:32:41 -05:00
Jack Robison
9bb91b126d
use midpoint id instead of random for refresh list
2018-11-16 10:59:12 -05:00
Jack Robison
6dbb00d8d5
populate buckets when joining the dht
2018-11-16 10:59:12 -05:00
Jack Robison
1d438f5d23
fixes https://github.com/lbryio/lbry/issues/1638
2018-11-14 15:35:59 -05:00
Jack Robison
2fba1f417f
less verbose logging
2018-11-12 14:47:11 -05:00
Jack Robison
d704336f20
absolute imports
2018-11-09 16:52:46 -05:00
Jack Robison
7b32e2ff7c
don't block the dht component on populating the routing table
2018-11-09 16:52:46 -05:00
Jack Robison
a6b643bb34
move files
2018-11-09 16:52:42 -05:00
Jack Robison
488b976734
move HashAnnouncer.py to extras
2018-11-09 14:16:33 -05:00
Jack Robison
253912b52e
fix skipping dht, peer_protocol_server, and hash_announcer components
...
-move PeerFinder and PeerManager initialization to the ComponentManager
-remove dht component requirement from all but the hash_announcer component. This allows running the file manager component without either of the server components.
2018-11-09 14:16:33 -05:00
Victor Shyba
db898307b5
obey the rpcAttempts constant on retries
2018-11-05 15:16:39 -03:00
Victor Shyba
7e3512cbf2
retry on protocol level
2018-11-05 15:16:39 -03:00