Commit graph

42 commits

Author SHA1 Message Date
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 0a068011d8 fix chunked response parsing 2019-02-13 13:10:27 -05:00
Jack Robison 939edb2f18
logging
-call loop.set_debug when using --verbose
2019-02-08 16:06:38 -05:00
Victor Shyba 9ecec52412 check lock acquired to prevent races 2019-02-08 04:39:28 -03:00
Victor Shyba 8b25acff6e do not wait blob to be written, log errors from races 2019-02-08 04:32:53 -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 141d68a2cd fix write race condition 2019-02-08 02:39:29 -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 ad03f91d24 let cancelled errors flow 2019-02-08 01:03:13 -03:00
Victor Shyba 5586a226c2 bypass parser during download 2019-02-07 21:19:31 -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
Victor Shyba b82d2c3120 handle and log if downloading from bad sendfile implementations 2019-02-04 19:13:31 -03:00
Jack Robison 8883587cc7
logging 2019-02-04 16:19:27 -05:00
Jack Robison c85991704d
catch invalid data error 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
Jack Robison c7cb6822cc
logging 2019-02-01 21:28:59 -05:00
Victor Shyba 40da5b6cb6 rework data parser 2019-02-01 20:09:14 -03:00
Victor Shyba b36cf3e36c remove closing peers from active connections 2019-02-01 20:09:14 -03:00
Jack Robison 0a08f445a4
close blob server transport on sendfile failing 2019-02-01 15:11:37 -05:00
Victor Shyba 832be0758b let cancel propagate 2019-02-01 16:05:14 -03:00
Jack Robison 2e9acd1baa
remove blob request asyncio.Lock 2019-01-31 20:19:50 -05:00
Jack Robison 40b90ce79b
fix hanging download 2019-01-31 16:53:27 -05:00
Jack Robison aa7f0845cc
catch sendfile errors 2019-01-31 16:10: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 ffc7fc0793
fix uncaught exception in BlobServerProtocol when client disconnects during a blob transfer 2019-01-30 12:03:05 -05:00
Victor Shyba 2e633c0ee6 fix chunked requests for server 2019-01-30 12:11:05 -03:00
Jack Robison 933d58d49b
logging 2019-01-29 20:47:02 -05:00
Jack Robison 418def56ac
fix log 2019-01-28 22:38:17 -05:00
Jack Robison 64dffa306f
logging, cleanup 2019-01-28 22:01:43 -05:00
Jack Robison 2a7d80f8b4
logging 2019-01-28 22:01:43 -05:00
Jack Robison 778d3826ab
clean up settings and use them 2019-01-28 15:51:27 -05:00
Jack Robison 69bcb052de
fix blob server protocol factory 2019-01-25 13:10:40 -05:00
Jack Robison 69b259c285 async lbrynet.blob_exchange 2019-01-24 00:13:15 -05:00