Victor Shyba
e675f1387c
remove peer junction and some refactoring
2019-05-11 04:58:56 -03:00
Victor Shyba
0da2827c78
fix dht deadlock
2019-05-10 19:54:59 -03:00
Victor Shyba
e59e96190e
fix peer search using inexistent variable, fix test to cover it
2019-05-10 13:49:35 -04:00
Victor Shyba
efbf2f49a9
fix generator junction
2019-05-08 23:02:38 -03:00
Victor Shyba
2e09d2adfa
close search on transport close
2019-05-08 23:02:38 -03:00
Victor Shyba
007dd43861
re-raise cancelled errors
2019-05-07 11:10:49 -03:00
Victor Shyba
1bc4e4b702
typo on logging, announcements logging is info, not warning
2019-05-07 11:10:49 -03:00
Victor Shyba
dc4560cc9a
refactor announcer
2019-05-07 11:10:49 -03:00
Jack Robison
f8c0e80cfc
add __slots__ to BlobInfo, StreamDescriptor, and KademliaPeer
2019-05-06 18:46:26 -04:00
Jack Robison
3a53ef5690
catch TransportNotConnected
2019-04-24 09:48:04 -04:00
Jack Robison
33a68b5cef
handle dht is_closing
2019-04-24 09:48:04 -04:00
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