Victor Shyba
124fdb7d31
fixes from review
2019-05-13 14:57:58 -03:00
Victor Shyba
2439743804
probe peer instead of scheduling ping for removal
2019-05-13 14:51:03 -03:00
Victor Shyba
b91d2190f4
disable infinite peer search, cleanup logging, tune scores to slow connections
2019-05-13 14:24:13 -03:00
Victor Shyba
d024433d1b
simplify accumulate task
2019-05-13 13:34:49 -03:00
Victor Shyba
7c4eb416d6
dont clearbanned if there are working peers, dont remove node immediately during search
2019-05-13 13:14:08 -03:00
Victor Shyba
fb457c820a
reorganizing iterative find code
2019-05-13 04:34:39 -03:00
Victor Shyba
18af2dcd4e
remove peer immediately instead of probing when its bad during search
2019-05-13 02:52:24 -03:00
Victor Shyba
0075dcc2c0
iterative find probes bad peers + test case for edge scenario Tom found
2019-05-13 02:40:04 -03:00
Victor Shyba
32d1563885
fix handling of invalid token
2019-05-12 04:12:12 -03:00
Victor Shyba
bac7d99b8a
add ability to re-join network on disconnect + tests
2019-05-12 03:39:11 -03:00
Victor Shyba
6f06026511
announcer goes idle if no peers in routing table
2019-05-12 01:10:05 -03:00
Victor Shyba
f02df86709
fix announce loop when there are no peers to announce
2019-05-12 00:42:19 -03:00
Victor Shyba
b7d76fd09f
add integration tests, fix bug that made refresh not exclude bad peers
2019-05-11 23:30:05 -03:00
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