Commit graph

65 commits

Author SHA1 Message Date
Igor Katson
bc9e72df60
Use actual BitV and factory everywhere 2024-08-20 20:42:24 +01:00
Igor Katson
d028e2e3c2
fix buggy "merge_two_streams" 2024-08-18 17:37:03 +01:00
Igor Katson
675aecf44b
More anyhow.context() 2024-08-18 17:20:59 +01:00
Igor Katson
726a5e14f9
Limit concurrency of torrent initialization 2024-08-15 18:55:46 +01:00
Igor Katson
f22814c77b
Postgres example storage 2024-08-15 13:31:56 +01:00
Igor Katson
d77d96bd48
Now saving torrent updates properly to the new db 2024-08-15 11:20:20 +01:00
Igor Katson
53d61d0428
fixing bugs 2024-08-14 12:14:57 +01:00
Igor Katson
55aeb07994
use byte::Bytes instead of ByteBufOwned to store torrent bytes 2024-08-13 06:43:52 +01:00
Igor Katson
fe7a1e09ba
Store torrent bytes in memory 2024-08-12 23:43:23 +01:00
Igor Katson
70dcb2e6cb
First pass to implement socks5 support 2024-08-08 00:46:39 +01:00
Igor Katson
ace4bed0c6
Folders and files are now deleted more comprehensively 2024-06-21 15:17:41 +01:00
Igor Katson
eafd274a0b --defer-writes-up-to 2024-05-03 20:24:39 +04:00
Igor Katson
d25309e358 Defer writes command line flag 2024-05-03 02:53:52 +04:00
Igor Katson
5027d8ccd1 All storage factories are generic now 2024-05-03 02:53:52 +04:00
Igor Katson
fd30ad9cbf Tweak everything for APIs to support everything while not changing too much 2024-05-02 12:29:46 +04:00
Igor Katson
aec1b94544 No sleeps, wait properly now 2024-05-02 12:29:46 +04:00
Igor Katson
f2ae2f67f4 Custom storage example 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
867785422c update a cuople error messages 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
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
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
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
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
Igor Katson
a6ebecee97
Report size to trackers 2024-03-01 07:54:27 +00:00
Igor Katson
a001bb8c97
Shorten Pin<Box to BoxFuture 2024-02-27 08:14:39 +00:00
Igor Katson
34f3ec6c29
Inline(never) more things for rqbit(bin) to compile faster 2024-02-26 23:08:47 +00:00
Igor Katson
51dba8ab67
Remove unused field 2024-02-26 08:55:53 +00:00
Igor Katson
f5ccb8632b
Cancellation... It compiles now at least with latest changes, but not sure if they work or are correct 2024-02-18 20:11:12 +00:00
Igor Katson
1582d16cc5
Fix unpause 2024-02-17 21:13:57 +00:00
Igor Katson
95769cca6a
Start calling trackers before going live 2024-02-17 11:14:40 +00:00
Joshua Abraham
0836b651a7 Add support for BTv2 magnet links 2024-01-07 20:57:10 -06:00
Igor Katson
325855ba56
Fix only files not working properly (#59)
* 1/n fixing only files - tracking stats better

* 2/n proper tracking of stats when only certain files selected
2023-12-14 11:58:09 +00:00
Igor Katson
bed7433d8e
Use tokio_util::CancellationToken everywhere 2023-12-07 10:22:17 +00:00
Igor Katson
215bccb89c
Fix build on rust 1.73 2023-12-05 20:08:37 +00:00
Igor Katson
006d83d6a7
Update docs, cleanup for 4.0.0 release 2023-12-03 12:14:50 +00:00
Igor Katson
98d487a5af
external_peer_adder now dies 2023-12-02 14:57:00 +00:00
Igor Katson
f337ab1837
Pass back peers from Web UI when adding a magnet in attempt to speed it up 2023-12-01 09:30:23 +00:00
Igor Katson
210a3d5d3e
Use concrete type for DHT peers 2023-11-30 08:06:55 +00:00
Igor Katson
c6b4e78747
Nothing much 2023-11-25 19:20:47 +00:00
Igor Katson
3de67d0902
Can now try to unpause errored torrent 2023-11-25 18:48:23 +00:00
Igor Katson
6f113c5137
Fatal error handling 2023-11-25 13:53:57 +00:00