Commit graph

40 commits

Author SHA1 Message Date
Igor Katson
438e164ffd
Fix clippy errors 2024-12-03 20:40:02 +00:00
Igor Katson
af7a0ddb4f
do not read/write/set_len to padding files 2024-11-07 13:46:12 +00:00
Igor Katson
32d658e2d9
Reuse file_infos in a couple places 2024-11-07 13:46:12 +00:00
Igor Katson
18755d8971
Add access to new fields 2024-11-07 13:46:12 +00:00
Igor Katson
8974a013ce
Move on_piece_completed() to a more appropriate place 2024-09-13 09:25:52 +01:00
Igor Katson
9225e126d9
Check SOME fastresume data, dont trust it completely. 2024-08-29 15:43:19 +01:00
LIAUD Corentin
9183df0ebd
fix: fixes according to PR comments
- Reset previous implementation of InMemoryExampleStorage
- Implement default (empty) behaviour of on_piece_completed in trait
  itself
- Now passing a ValidPieceIndex in on_piece_completed
2024-08-28 08:28:14 +02:00
LIAUD Corentin
35d57ae8a2
feat: add on_piece_completed method on TorrentStorage 2024-08-27 22:00:14 +02:00
Igor Katson
a55dfc6e0e
Simplify initial check code to only return have_pieces 2024-08-20 20:16:11 +01: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
3d46d7cb97
Fix clippy lints related to recent bug 2024-04-24 14:19:04 +01:00
Igor Katson
136e8fb953
Bufix: on 32 bit systems bugged narrowing leading to bad checksums 2024-04-23 22:48:29 +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
51d1a0b0c7 Jeez... 2024-03-30 20:46:29 +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
cee66309d0
Fix malicious peer checking that was broken all this time (it didnt trigger) 2024-03-29 20:33:16 +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
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
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
a5ae2988b8
Downgraded a bunch of messages from debug to trace 2023-11-29 23:45:08 +00:00
Igor Katson
876afbf41b
Initialization progress reporting 2023-11-24 15:04:36 +00:00
Igor Katson
f45a15c89a
Downgrade visibility within librqbit 2023-11-23 16:57:27 +00:00
Igor Katson
84766f92fb
cargo fix 2023-11-23 16:30:38 +00:00
Igor Katson
48a14823fa
Changed log to tracing 2023-11-19 13:05:42 +00: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
bd0df49591 Nothing, small cleanups 2021-07-16 13:58:10 +01:00
Igor Katson
ad867e8e3c Move everything to workspaces 2021-07-03 19:10:59 +01:00
Igor Katson
9038630622 Trying to make torrent manager not depend on the whole metainfo 2021-07-03 09:13:09 +01:00
Igor Katson
d722f0edcb Remove all linter warnings 2021-07-02 10:21:19 +01:00
Igor Katson
563ca78774 Updates 2021-07-01 19:18:19 +01:00
Igor Katson
5942e6a9d5 Updates 2021-07-01 19:17:44 +01:00
Igor Katson
a6981231c1 Add system hasher 2021-07-01 17:18:07 +01:00
Igor Katson
34dd074310 Openssl + a bunch of other refactorings 2021-06-28 20:40:13 +01:00
Igor Katson
14b62b45c5 Downloading chunks now does not copy the chunks, but writes them straight to disk. (Still reads into a buffer first though, but does not allocate on every chunk) 2021-06-28 16:37:15 +01:00
Igor Katson
fab43a8d23 Uploading chunks now reads straight into write buffer 2021-06-28 16:09:20 +01:00