Commit graph

57 commits

Author SHA1 Message Date
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
2972b0c87b Remove a redundant method 2024-03-30 20:22:04 +00:00
Igor Katson
0cc90f19ab Simplify chunk_size 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
c5b21992e6 Make test compile 2024-03-30 20:22:04 +00:00
Igor Katson
304b2c6328 Add extensive tests for Lengths. 2024-03-30 20:22:04 +00:00
Igor Katson
950e0cd50e Remove custom ceil_div_u64 2024-03-30 20:22:04 +00:00
Igor Katson
9722dd8cb7 Fewer unwraps 2024-03-30 20:22:04 +00:00
Igor Katson
2ef5124a2d
Nothing 2024-03-29 20:16:44 +00:00
Igor Katson
c481f77354
Rename generic bounds for clarity 2024-03-29 13:44:30 +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
e862d34cb4
Revert "Rename generic bounds for clarity"
This reverts commit 8870fb2d5f.
2024-03-29 13:00:54 +00:00
Igor Katson
8870fb2d5f
Rename generic bounds for clarity 2024-03-29 12:19:15 +00:00
Igor Katson
deee41cd93
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 11:00:58 +00:00
Matt Joiner
b184354c2f
Make the announce info field optional 2024-03-24 18:27:08 +11:00
Igor Katson
2778d46bb3
End-to-end unit test (#90)
* First implementation of create_torrent_file

* Test harness for e2e preparing

* Saving

* Continuing test harness

* Continuing test harness

* Continuing test harness

* All servers are running

* Full e2e harness done

* Test e2e harness working fine

* Remove lints

* injecting faults

* The e2e test runs continuously

* e2e test

* Add a test for create_torrent

* Nothing

* Nothing, just tweaking the numberes

* Update tokio, remove custom tempfile shim
2024-03-05 09:18:22 +00:00
Igor Katson
5488e1d40f
Split up a couple large functions 2024-02-28 20:27:45 +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
76b7d23149
Clippy 2024-02-18 20:16:18 +00:00
Igor Katson
8733538d83
Abstracting tracker comms 2024-02-17 10:51:09 +00:00
Igor Katson
c8189de3d2
Merge pull request #72 from jabedude/bep52-magnet-support
Add support for BTv2 magnet links
2024-01-08 11:27:27 +00:00
Joshua Abraham
0836b651a7 Add support for BTv2 magnet links 2024-01-07 20:57:10 -06:00
Igor Katson
b289f1eeaa
Fix file selection window on Windows that didnt split file with proper separator 2024-01-03 14:36:16 +00:00
Arifcan Balta
911bf3a0d5
Chunk-piece length comparison fix (#55) 2023-12-13 17:53:27 +00:00
Igor Katson
bed7433d8e
Use tokio_util::CancellationToken everywhere 2023-12-07 10:22:17 +00:00
Igor Katson
80df2c1001
Display upload speed in Web UI 2023-12-05 20:52:30 +00:00
Igor Katson
006d83d6a7
Update docs, cleanup for 4.0.0 release 2023-12-03 12:14:50 +00:00
Igor Katson
28c2db2a37
Made changes for Desktop app to work 2023-12-02 21:12:15 +00:00
Igor Katson
414b2c5f65
Print all running tasks periodically 2023-12-01 10:48:16 +00:00
Igor Katson
18c845d6f0
Shorten debug for messages 2023-11-30 17:34:39 +00:00
Igor Katson
16a4d22b6b
Fix a bug in get_bit() 2023-11-30 14:49:39 +00:00
Igor Katson
c8967f2469
Bucket refresher. Broken 2023-11-30 11:38:15 +00:00
Igor Katson
52883769e1
Session persistence now saving full torrent contents 2023-11-30 00:48:57 +00:00
Igor Katson
a5ae2988b8
Downgraded a bunch of messages from debug to trace 2023-11-29 23:45:08 +00:00
Igor Katson
d8fdb94305
DHT instrumentation 2023-11-25 15:15:16 +00:00
Igor Katson
bec5e1be7f
Session persistence 2023-11-25 02:36:19 +00:00
Igor Katson
876afbf41b
Initialization progress reporting 2023-11-24 15:04:36 +00:00
Igor Katson
3428de8f3d
Make "announce-list" optional 2023-07-11 22:27:02 +01:00
Igor Katson
be726e9aa3
Just messing around with itertools Either 2023-07-10 14:47:40 +01:00
Igor Katson
6968a4e449
Cargo clippy: fix the majority of errors 2022-12-08 20:20:23 +00:00
Igor Katson
cc8011cf9a
Fix a bug in lengths computation 2021-10-28 11:00:03 +01:00
Igor Katson
b2fb4729c7 Fix or disable all failing tests. Fix all cargo clippy warnings 2021-10-18 16:38:43 +01:00
Igor Katson
5de63af783 Prioritize last piece. Dont ask me why :) 2021-10-16 13:18:25 +01:00
Igor Katson
f2c509359f Print download speed 2021-10-02 09:58:57 +01:00
Igor Katson
b301b159da Fix a bug 2021-07-31 13:13:04 +01:00
Igor Katson
1300faa0b4 Persistent DHT 2021-07-18 10:53:33 +01:00
Igor Katson
bd0df49591 Nothing, small cleanups 2021-07-16 13:58:10 +01:00
Igor Katson
1f899b63a6 Almost nothing 2021-07-14 15:50:40 +01:00