Commit graph

158 commits

Author SHA1 Message Date
Jack Robison
4f8bcfcd18
fix false negative with file completed field 2019-05-24 16:47:25 -04:00
Jack Robison
85d94d4ca3
start returning range request bytes at the requested offset 2019-05-24 15:32:40 -04:00
Jack Robison
cb6ddaf276
add blob_lru_cache_size config setting, defaults to 32 2019-05-24 12:02:58 -04:00
Lex Berezhny
048aa07e80 test_file_commands integration tests fixed 2019-05-18 21:43:46 -04:00
Lex Berezhny
9b8be8682c massive progress 2019-05-18 21:43:46 -04:00
Jack Robison
41abfbdd9b
add streaming_server and streaming_get settings
-split rpc runner from range request runner
2019-05-13 22:27:48 -04:00
Jack Robison
fd19daad9e
add streaming_url to file api response type 2019-05-13 19:05:26 -04: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
648dbcc36b
add timeout to blob downloads after the head blob, stop timed out streams 2019-05-10 14:50:01 -04:00
Jack Robison
e2c123456b
write decrypted blob data from run_in_executor 2019-05-08 16:07:32 -04:00
Jack Robison
761a2b235c
set written_bytes, download_path, file_name, and download_directory to None if the file doesn't exist 2019-05-08 14:11:44 -04:00
Jack Robison
3ca2fee592
use stream size from claim if available 2019-05-08 14:11:39 -04:00
Jack Robison
d7032b12d7
add saved_file and content_fee columns to file table
-drop not null constraints for file_name and download_directory

-add migrator
2019-05-08 10:26:06 -04:00
Jack Robison
bef244ba77
dont make duplicate files 2019-05-06 18:46:26 -04:00
Jack Robison
3c231d6215
handle get with file_name/download_directory/save_file arg for a stream that is already running 2019-05-06 18:46:26 -04:00
Jack Robison
a212cf6ba4
set content_fee attribute 2019-05-06 18:46:26 -04:00
Jack Robison
bc060f1378
pay fee after downloading the sd blob/adding to the db 2019-05-06 18:46:26 -04:00
Jack Robison
22c701fd50
fix completed field for an item in file list 2019-05-06 18:46:26 -04:00
Jack Robison
f642cfe9dd
fix resuming save tasks on startup 2019-05-06 18:46:26 -04:00
Jack Robison
24e073680b
add connection id workaround 2019-05-06 18:46:26 -04:00
Jack Robison
b2f63a1545
fix tests 2019-05-06 18:46:26 -04:00
Jack Robison
f506b3e6d4
tests 2019-05-06 18:46:26 -04:00
Jack Robison
f7412514b3
fix partial content 0 padding 2019-05-06 18:46:26 -04:00
Jack Robison
bd6a609b30
fix logging 2019-05-06 18:46:26 -04:00
Jack Robison
4e32b69d1d
don't set running streams as stopped on startup 2019-05-06 18:46:26 -04:00
Jack Robison
1116c7f29e
logging 2019-05-06 18:46:26 -04:00
Jack Robison
14b12cbea2
block /stream and /get requests on the stream manager starting 2019-05-06 18:46:26 -04:00
Jack Robison
1f7feafb67
force close open streaming requests and api calls on shutdown 2019-05-06 18:46:26 -04:00
Jack Robison
cbe689ea7f
logging 2019-05-06 18:46:26 -04:00
Jack Robison
9099ee2e8e
fix/refactor starting and stopping files
-move partial content handling into ManagedStream
-add delayed stop test
2019-05-06 18:46:26 -04:00
Jack Robison
f8c0e80cfc
add __slots__ to BlobInfo, StreamDescriptor, and KademliaPeer 2019-05-06 18:46:26 -04:00
Jack Robison
1f266ebdad
add logging for streams we already have 2019-05-06 18:46:26 -04:00
Jack Robison
b09e1f8825
fix written_bytes never being 0 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
ae2121c5c4 fix tests and new test 2019-05-01 13:16:45 -03:00
Victor Shyba
7ffce1040c fix foreign key error 2019-04-30 19:51:19 -03:00
Victor Shyba
b350e74aca fix stream update callback to update the main dict 2019-04-28 22:53:43 -04:00
Jack Robison
1ffb99f9f9
rename streaming_only setting -> save_files 2019-04-24 12:44:12 -04:00
Jack Robison
0f3f38d8a3
pylint 2019-04-24 09:48:04 -04:00
Jack Robison
832537a5cf
set deleted downloads as streaming mode on startup 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
Victor Shyba
9ba6653475
raise proper error when sd is not available 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
a0e3338177
only re-reflect streams if the sd blob is readable 2019-04-24 09:48:04 -04:00
Jack Robison
d5a353066c
missing await 2019-04-24 09:48:04 -04:00
Jack Robison
bc29fc4465
type 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
a1abb7c8fb
test range requests 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
60c9ae64b4
endpoint to call get and redirect to the partial content stream 2019-04-24 09:48:04 -04:00