Commit graph

492 commits

Author SHA1 Message Date
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
841c84ff25 fix file progress when there are nested folders 2024-04-07 10:56:06 +01:00
Igor Katson
26c8af1ca7 rebuild webui 2024-04-07 10:56:06 +01:00
Igor Katson
7ec76fc5d4 Update subcrates 2024-04-07 10:56:06 +01:00
Igor Katson
81d2301e20 Starting to cut 5.6.0 2024-04-07 10:56:06 +01:00
Igor Katson
e18a711abf
v5.6.0-beta.1 (#116)
* Fix displaying versions in web/desktop
* Update deps
* Tag 5.6.0-beta.1
2024-04-06 09:37:31 +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
2fb3da9dc5
Update rust-cache to v2 in github tests to make it faster (#113) 2024-04-05 10:52:27 +01:00
Igor Katson
8524e73fda Updated version to 5.6.0-beta.0 (forgot to do it when releasing) 2024-04-05 10:31:19 +01:00
Igor Katson
f7b22aa0aa Comments 2024-03-30 20:46:29 +00:00
Igor Katson
5c90e0cdd9 Fix a broken terst 2024-03-30 20:46:29 +00:00
Igor Katson
dd53eda662 Fatal error impossible after pause 2024-03-30 20:46:29 +00:00
Igor Katson
86d9d2c5f0 Possibility to change selected files after the fact 2024-03-30 20:46:29 +00:00
Igor Katson
feae1789a9 Remove dbg! 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
276a1e175e Add a method to update_only_files to chunk_tracker 2024-03-30 20:46:29 +00:00
Igor Katson
6b8336e2f6 chunks status computed from "have" 2024-03-30 20:22:04 +00:00
Igor Katson
f8c2bdc781 Rewrite compute_chunk_status a bit 2024-03-30 20:22:04 +00:00
Igor Katson
106511f923 A few more tests 2024-03-30 20:22:04 +00:00
Igor Katson
8f3cd291b0 Improve error messages 2024-03-30 20:22:04 +00:00
Igor Katson
70c730a2d3 add tests for compute_chunk_status 2024-03-30 20:22:04 +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
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
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
8402a821ad
Prepare for 5.5.4 (#107) 2024-03-29 21:06:59 +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
cee66309d0
Fix malicious peer checking that was broken all this time (it didnt trigger) 2024-03-29 20:33:16 +00:00
Igor Katson
048f4d1645
Add bogus peer simulation to e2e tests 2024-03-29 20:32:08 +00:00
Igor Katson
2ef5124a2d
Nothing 2024-03-29 20:16:44 +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
4d6b5181eb
Prepare v5.5.3 (#98)
* Forgot to commit version updates

* Cargo.toml 5.5.3

* Cargo.lock

* Tag desktop 5.5.3

* Update deps
2024-03-25 13:40:04 +00:00
Matt Joiner
b184354c2f
Make the announce info field optional 2024-03-24 18:27:08 +11:00
Igor Katson
cf2f9f34e8
Update dependencies (#94)
* Update deps

* Pin clap to older

* pin clap complete
2024-03-22 09:02:25 +00:00
Igor Katson
56527ae8d7
Bump all e2e test timeouts 3x 2024-03-05 02:00:43 -08:00
Igor Katson
25cd3c75cc
Tests now compile but take too long on github actions 2024-03-05 01:53:41 -08:00
Igor Katson
b8611fdaf4
Fix compilation on win 2024-03-05 01:40:54 -08: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
5d6ecb8065
Tiny refactor for stream types 2024-03-02 11:18:38 +00:00