Igor Katson
3e37b4698f
remove impl for box dyn storage
2024-05-02 12:29:46 +04:00
Igor Katson
dc137c075f
Move to storage folder
2024-05-02 12:29:46 +04:00
Igor Katson
67c22c9313
It compiles now
2024-05-02 12:29:46 +04:00
Igor Katson
42bbf84ea5
Fixing up initialization to allow passing in custom storages
2024-05-02 12:29:46 +04:00
Igor Katson
1b49257019
Storages
2024-05-02 12:29:46 +04:00
Igor Katson
609f9d92ae
Remove outdated comment
2024-05-02 09:11:45 +01:00
Igor Katson
d2e37ead51
Download speed: dont lag behind disk
2024-05-02 09:10:36 +01:00
Igor Katson
648c4edf71
Add explanation to peer semaphore
2024-05-02 09:04:57 +01:00
Igor Katson
04d8b5f7c8
128 works even better
2024-05-01 15:55:55 +04:00
Igor Katson
371d1ff927
Bump up peer semaphore
2024-05-01 15:55:55 +04:00
Igor Katson
5cac8ac02c
fix after rebase on remove-reopen
2024-05-01 00:43:51 +04:00
Igor Katson
4a73739871
Force set file length on stream
2024-05-01 00:43:51 +04:00
Igor Katson
0ebd4aa128
Force set file length on stream
2024-05-01 00:43:51 +04:00
Igor Katson
6a9578cc0b
Fix a bug
2024-05-01 00:43:51 +04:00
Igor Katson
867785422c
update a cuople error messages
2024-05-01 00:43:51 +04:00
Igor Katson
82f8b0932c
Patch in some changes from another branch
2024-05-01 00:43:51 +04:00
Igor Katson
9474a6d52e
Works pretty well now!
2024-05-01 00:43:51 +04:00
Igor Katson
ffc662e370
Less spammy log message
2024-05-01 00:43:51 +04:00
Igor Katson
5ffe2d59b7
Fix streaming logic
2024-05-01 00:43:51 +04:00
Igor Katson
0a895c5b9c
Update streaming if checks
2024-05-01 00:43:51 +04:00
Igor Katson
f0788f2c4a
Works fine now finally
2024-05-01 00:43:51 +04:00
Igor Katson
7e180c05b3
Fix the bugs
2024-05-01 00:43:51 +04:00
Igor Katson
d1c6a5b584
Streaming test
2024-05-01 00:43:51 +04:00
Igor Katson
10974888fa
Streaming test
2024-05-01 00:43:51 +04:00
Igor Katson
dad127e0ea
Do not reopen files back and forth, less bugs
2024-05-01 00:43:51 +04:00
Igor Katson
9590df1122
Fix a bug in stealing code
2024-04-29 12:01:31 +01:00
Igor Katson
3d46d7cb97
Fix clippy lints related to recent bug
2024-04-24 14:19:04 +01:00
Igor Katson
2a4d9a85d5
Download files in filename priority by default
2024-04-15 23:41:47 +04:00
Igor Katson
e03600c463
Add file priorities.
2024-04-15 23:41:47 +04:00
Igor Katson
0230550ed3
Fix fetched bytes computation to not account for stolen bytes.
2024-04-07 22:45:47 +01:00
Igor Katson
cdbd91b13b
Stats on steals
2024-04-07 22:45:47 +01:00
Igor Katson
6a23f311e1
Send cancellations on steal
2024-04-07 22:45:47 +01:00
Igor Katson
5eb01ac226
Ability to change the list of files at any time, including through UI ( #115 )
...
* Now can update the list of files without pausing/unpausing
* Shrink a few functions
* Reopen write when updating files
* Todos
* opened_file abstraction
* iter_pieces_within iterator
* Simplify iter_pieces_within
* Simplify iter_pieces_within
* Add "iter_file_details"
* temporarily broken: readonly by default
* Live torrent - reopen files
* Reopen files after changing the list
* Now reopening files read only when they are completed
* Fix a bug in opened_file.rs
* update todos
* update help
* Reconnect all peers that are idling
* Add a couple fields to OpenedFile
* Add a couple fields to OpenedFile
* Small cleanups - use the new iterator where possible
* size_of_piece_in_file function
* Updating have
* Include file progress
* Almost nothing
* ugly progress bars
* bad UI, saving
* its not so bad
* Works now
* update progress bar a bit
* Reopen read-only on pause
* Zero bytes isnt too bad! Doesnt break anything
* fix per file progress bars
* progress bar not as ugly anymore?
* ui tweaks
* fix a react bug
* TODO.md update
* Fix js + TODOs
* Compute per-file progress on init
* Fix stats updating live
* Nothing
* Nothing
* cleanup ui a bit
* Nothing
* Final fixes
* Trying to fix rust 1.73
* Sorting filenames
* remove unnecessary indentation
* Remove unnecessary comment
2024-04-06 09:20:03 +01:00
Igor Katson
dd53eda662
Fatal error impossible after pause
2024-03-30 20:46:29 +00:00
Igor Katson
51d1a0b0c7
Jeez...
2024-03-30 20:46:29 +00:00
Igor Katson
efcffdd072
Well, it doesnt crash at least
2024-03-30 20:46:29 +00:00
Igor Katson
2972b0c87b
Remove a redundant method
2024-03-30 20:22:04 +00:00
Igor Katson
b42649a524
Remove a couple unnecessary todos
2024-03-30 20:22:04 +00:00
Igor Katson
3e2fac81b1
Trying to check / simplify / improve math
2024-03-30 20:22:04 +00:00
Igor Katson
9722dd8cb7
Fewer unwraps
2024-03-30 20:22:04 +00:00
Igor Katson
bb0f3c36ec
Merge pull request #106 from ikatson/resilience-to-bogus-peers
...
Fix resilience to bogus peers
2024-03-29 20:46:37 +00:00
Igor Katson
ef44f104a5
disconnect peers that send bad data
2024-03-29 20:40:05 +00:00
Igor Katson
07bd9dec83
Remove sha1 extra features ( #105 )
...
Remove all extra sha1 features
2024-03-29 15:57:30 +00:00
Igor Katson
2b3980e40a
Better ETA
2024-03-29 13:51:11 +00:00
Igor Katson
fa05fe8376
Box<[u8]> instead of Vec<u8> for ByteBufOwned
2024-03-29 13:44:10 +00:00
Igor Katson
f42de46878
Revert "Box<[u8]> instead of Vec<u8> for ByteBufOwned"
...
This reverts commit deee41cd93 .
2024-03-29 13:00:57 +00:00
Igor Katson
ecb55ed32a
Revert "Another attempt to fix bugs"
...
This reverts commit 2004e7b21f .
2024-03-29 13:00:38 +00:00
Igor Katson
2004e7b21f
Another attempt to fix bugs
2024-03-29 12:57:29 +00:00
Igor Katson
deee41cd93
Box<[u8]> instead of Vec<u8> for ByteBufOwned
2024-03-29 11:00:58 +00:00
Igor Katson
3a1d0c3ac9
Tiny refactor: simplify a few methods by removing initial_peers propagated too deep down
2024-03-02 10:57:32 +00:00