Commit graph

38 commits

Author SHA1 Message Date
Jack Robison
c8dd1987e6 add connection status 2019-06-04 01:20:05 -04: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
7c4eb416d6 dont clearbanned if there are working peers, dont remove node immediately during search 2019-05-13 13:14:08 -03:00
Jack Robison
32dc1297ec
fix infinite loop 2019-05-06 18:46:26 -04:00
Jack Robison
24e073680b
add connection id workaround 2019-05-06 18:46:26 -04:00
Victor Shyba
cf7bb6a391 fix tests and stream being deleted on data timeout 2019-05-02 16:41:48 -03:00
Victor Shyba
ac69fcbc5f fix possible division by zero 2019-05-02 11:52:09 -03:00
Victor Shyba
609cf42868 cleanup downloader code 2019-05-01 18:04:45 -03:00
Victor Shyba
60f7766cf7 small adjustment to new_peer_or_finished 2019-05-01 02:55:51 -03:00
Victor Shyba
63bd983012 pylint 2019-05-01 00:42:51 -03:00
Victor Shyba
ac6835fa60 dont get stuck 2019-04-30 19:51:02 -03:00
Victor Shyba
3cf5c536c0 improve ban timing and downloader loop friction 2019-04-30 17:56:29 -03:00
Jack Robison
e2663f6d57
remove unnecessary except/raise 2019-04-24 09:48:04 -04:00
Jack Robison
119e0ec408
cancelled error 2019-04-24 09:48:04 -04:00
Jack Robison
c663e5a3cf
add cache_concurrent decorator 2019-04-24 09:48:04 -04:00
Jack Robison
676f0015aa
refactor BlobFile into AbstractBlob, BlobFile, and BlobBuffer classes 2019-04-24 09:48:04 -04:00
Jack Robison
b230d8fbcb
rename BlobFileManager -> BlobManager 2019-04-24 09:48:04 -04:00
Victor Shyba
2d8ebe25ed
refactor so we can stop trapping CancelledError everywhere 2019-02-26 17:42:45 -05:00
Victor Shyba
b36c22e2f4 unban after 10 seconds, give up after 60 2019-02-18 17:16:10 -05:00
Victor Shyba
576da1bc30 do not keep trying when blob is being written 2019-02-15 21:20:06 -03:00
Victor Shyba
af1619ebfb disable race limiting for now 2019-02-08 03:32:38 -03:00
Victor Shyba
3352e0e4f4 score peers by speed 2019-02-08 03:08:08 -03:00
Victor Shyba
c06ec6cd69 manage connections, reusing them when possible 2019-02-08 02:27:58 -03:00
Victor Shyba
1be5dce30e stop racing during long streams 2019-02-08 01:28:03 -03:00
Victor Shyba
2d7eb83518 change score calculation, wait for active peers too, simplify peer sorting/keeping 2019-02-08 01:04:38 -03:00
Victor Shyba
a616582733 wait on connection tasks 2019-02-07 20:11:57 -03:00
Jack Robison
0e972ec2ae
refactor BlobFile.close to be non async 2019-02-06 11:00:57 -05:00
Jack Robison
8883587cc7
logging 2019-02-04 16:19:27 -05:00
Jack Robison
377442d9f0
fix request_blob cancellation 2019-02-04 16:19:24 -05:00
Jack Robison
c3b0151943
fix dht status error during startup 2019-02-01 22:12:07 -05:00
Victor Shyba
b36cf3e36c remove closing peers from active connections 2019-02-01 20:09:14 -03:00
Victor Shyba
832be0758b let cancel propagate 2019-02-01 16:05:14 -03:00
Jack Robison
40b90ce79b
fix hanging download 2019-01-31 16:53:27 -05:00
Jack Robison
34776e7eb9
fix test 2019-01-31 15:39:20 -05:00
Jack Robison
2e978c00b2
prioritize peers to download from 2019-01-31 15:39:20 -05:00
Jack Robison
6aef6a80b7
refactor downloader
split peer accumulation out, use Queues instead of locks
2019-01-31 15:39:20 -05:00
Jack Robison
778d3826ab
clean up settings and use them 2019-01-28 15:51:27 -05:00
Jack Robison
69b259c285 async lbrynet.blob_exchange 2019-01-24 00:13:15 -05:00