Commit graph

81 commits

Author SHA1 Message Date
Jack Robison cb6ddaf276
add blob_lru_cache_size config setting, defaults to 32 2019-05-24 12:02:58 -04:00
Jack Robison f8c0e80cfc
add __slots__ to BlobInfo, StreamDescriptor, and KademliaPeer 2019-05-06 18:46:26 -04:00
Victor Shyba e43b29fcd1 if the current writer is closed, its fine to open a new one 2019-05-01 15:09:11 -03:00
Jack Robison 67088b2ca2
test_blob_writers_concurrency 2019-04-24 09:48:04 -04:00
Jack Robison dab49e812f
set writer result or error before calling close_handle 2019-04-24 09:48:04 -04:00
Jack Robison 7ba433c2e5
fix setting blob verified event and canceling blob writers
-raise OSError if multiple writers for one peer are opened for a blob
2019-04-24 09:48:04 -04:00
Jack Robison 3234d70270
add peer address/port to hash blob writer 2019-04-24 09:48:04 -04:00
Jack Robison 3a997277aa
reduce the amount of Blob objects created 2019-04-24 09:48:04 -04:00
Jack Robison 01a81fceed
more streaming_only + save_blobs integration testing 2019-04-24 09:48:04 -04:00
Jack Robison 46b166952b
non async blob_completed callback, tests 2019-04-24 09:48:04 -04:00
Jack Robison 7d782d516a
track and close blob readers 2019-04-24 09:48:04 -04:00
Jack Robison d3eac48035
tests, add __slots__ to AbstractBlob 2019-04-24 09:48:04 -04:00
Jack Robison 04ddee7d89
blob tests 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 b834f29634 nullify length on blob delete 2019-02-21 21:00:28 -03:00
Jack Robison dbb6ba6241
recover streams with missing sd blobs, handle previous sd blob bugs
-test download and recover stream with old key sorting
2019-02-15 15:21:29 -05:00
Jack Robison 39737c790f
sync blob files in database with those in directory on startup 2019-02-15 15:21:07 -05:00
Jack Robison 56c41b2fea
fix integration test
-cancel running reflector uploads from publishes upon shutdown
-refactor blob.delete to be non-async
-delete blobs synchronously
2019-02-14 15:43:26 -05:00
Jack Robison 85f41887fd
don't create BlobFile object when deleting if it doesn't already exist 2019-02-14 12:28:42 -05:00
Jack Robison 0c93090d2c
faster is_valid_hashcharacter 2019-02-08 19:57:26 -05:00
Jack Robison 45404b6ad4
faster is_valid_blobhash 2019-02-08 19:54:59 -05:00
Jack Robison 8abfdc82b2
faster blob manager startup 2019-02-08 17:37:35 -05:00
Victor Shyba 141d68a2cd fix write race condition 2019-02-08 02:39:29 -03:00
Victor Shyba 3a15ff4bcd test incomplete streams, respect real length, delete on incomplete assembly 2019-02-06 15:56:06 -03:00
Jack Robison c1c6d5bc99
fix deleting partial downloads when stopped and previous streams when updating a publish 2019-02-06 11:43:05 -05:00
Jack Robison 0e972ec2ae
refactor BlobFile.close to be non async 2019-02-06 11:00:57 -05:00
Victor Shyba a4ced4dbd2 set verified after callback 2019-02-05 13:17:00 -03:00
Victor Shyba 7b8f42e6d0 remove dead set_should_announce code 2019-02-05 13:01:12 -03:00
Jack Robison 8cda3143f2
fix setting should_announce and blob status 2019-02-04 18:22:44 -05:00
Jack Robison 2bce7cecfa
fix sendfile on windows 2019-02-04 16:48:48 -05:00
Victor Shyba f5bf1463af fixes from review 2019-02-01 17:09:37 -03:00
Victor Shyba 25050fdeeb fixes for writers (check inside lock and dont hold verified bytes) 2019-02-01 16:05:14 -03:00
Jack Robison 4bf7742c19 async lbrynet.stream 2019-01-24 00:13:15 -05:00
Jack Robison 69b259c285 async lbrynet.blob_exchange 2019-01-24 00:13:15 -05:00
Jack Robison a5524d490c async lbrynet.blob 2019-01-24 00:13:15 -05:00
Lex Berezhny 7a28171a72 conf no longer global 2019-01-22 18:04:17 -05:00
Lex Berezhny 16e596ec87 lots o bugs fixed discovered while using desktop app 2019-01-07 21:56:05 -05:00
Lex Berezhny 3fdcb80960 minor test fixes 2019-01-07 21:56:05 -05:00
Lex Berezhny b5340505e5 fix blobmanager tests and dont run conf tests 2019-01-07 21:56:05 -05:00
Lex Berezhny 4bb8129bb7 fixing tests to work with asyncio daemon 2019-01-07 21:56:05 -05:00
Lex Berezhny fb4e94b04a asyncifying minimal amount of the old blob/p2p code 2019-01-07 21:56:05 -05:00
Jack Robison 9dc4608a62
combine StreamProgressManager and FullStreamProgressManager
-add wrote_first_data Deferred to FullStreamProgressManager
2018-11-26 11:36:28 -05:00
Jack Robison fc69366092
set the download manager before creating the first deferred 2018-11-26 11:36:28 -05:00
Jack Robison d704336f20
absolute imports 2018-11-09 16:52:46 -05:00
Jack Robison 1b4230b06e
move is_valid_blobhash to lbrynet.blob.blob_file 2018-11-09 16:52:46 -05:00
Jack Robison a6b643bb34
move files 2018-11-09 16:52:42 -05:00
Lex Berezhny 264e6744e1 updated references after moving conf to lbrynet.extras.daemon.conf 2018-11-04 20:25:24 -05:00
Lex Berezhny 171c080d33 updated references lbrynet.file_manager -> lbrynet.blob 2018-11-04 20:25:24 -05:00
Lex Berezhny cfc3ec2a05 merged lbrynet/file_manager into lbrynet/blob 2018-11-04 20:25:24 -05:00