Commit graph

71 commits

Author SHA1 Message Date
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
Lex Berezhny
c1a9cd93ee updated references lbrynet.crypstream -> lbrynet.blob 2018-11-04 20:25:24 -05:00
Lex Berezhny
0d4e83e167 merged lbrynet/cryptstream into lbrynet/blob 2018-11-04 20:25:24 -05:00
Lex Berezhny
f4c6dc90c9 updated references lbrynet.core -> lbrynet.p2p 2018-11-04 20:25:24 -05:00
Hugo
2e6c848c39 Upgrade Python syntax with pyupgrade --py36-plus 2018-10-23 12:02:10 -04:00
Hugo
3f704be85c Fix spelling 2018-10-18 14:40:37 +03:00
Lex Berezhny
10b34d6b33
unnecessary list() added during py3 port
instead of recursive bytes2unicode use a proper JSONEncoder to conver bytes->unicode for json.dumps()
removing excessive isinstance(data, bytes) checks
py3: / -> // and list() around .items() that gets modified in loop
moved lbrynet.undecorated to where its actually used and hopefully we can delete it eventually
removed build/upload_assets.py, travis can do all this now
2018-08-24 11:40:43 -04:00
Lex Berezhny
d35d340613
fixing unit tests
fixing integration tests
skip running functional tests on travis until they are fixed
2018-08-24 11:37:53 -04:00
Lex Berezhny
693a3346d2
pylint fixes 2018-08-24 11:37:53 -04:00
Lex Berezhny
4ece422f48
No longer inheriting from object and added proper use of super(). 2018-08-24 11:37:53 -04:00
Lex Berezhny
076af7ef43
py3 compatibility updates 2018-08-24 11:37:53 -04:00